HTML5 output: Diamond suit (♦) does not display correctly, others do
Posted: Wed Jan 28, 2026 11:51 am
Hi all,
I am generating HTML5 output with LiveCode (standalone HTML5).
In my application, I need to display bridge card suits.
The problem is the following:
♠ Spade, ♥ Heart and ♣ Club display correctly in HTML5
Only ♦ Diamond (Carreau) does not display correctly
The same code works perfectly in native applications (macOS / Windows).
In HTML5, the diamond is replaced by a strange character or ?, even when using Unicode or HTML entities.
For example, this code:
set the htmlText of field "entame" to "D♦"
still does not display a correct diamond symbol, while the other suits work as expected.
I have tried different approaches (Unicode, HTML entities, SVG), but the issue only affects the diamond suit.
Is there anything special about the ♦ diamond character in LiveCode HTML5 output?
Or is there a known limitation / workaround regarding fonts or HTML rendering?
Many thanks in advance for any help.
I am generating HTML5 output with LiveCode (standalone HTML5).
In my application, I need to display bridge card suits.
The problem is the following:
♠ Spade, ♥ Heart and ♣ Club display correctly in HTML5
Only ♦ Diamond (Carreau) does not display correctly
The same code works perfectly in native applications (macOS / Windows).
In HTML5, the diamond is replaced by a strange character or ?, even when using Unicode or HTML entities.
For example, this code:
set the htmlText of field "entame" to "D♦"
still does not display a correct diamond symbol, while the other suits work as expected.
I have tried different approaches (Unicode, HTML entities, SVG), but the issue only affects the diamond suit.
Is there anything special about the ♦ diamond character in LiveCode HTML5 output?
Or is there a known limitation / workaround regarding fonts or HTML rendering?
Many thanks in advance for any help.