Special characters in TextBlock


I dont get it to work to display special characters like “ö”, “ä”, etc in a TextBlock. Is there any option to do so?

Best regards

Hi Herry, welcome to the BabylonJS forum.


https://www.babylonjs-playground.com/#EUFLAN#14 (see line 137)

header.text = " Umlauts and diaeresis... " + "\u00E4 \u00EB \u00F6";

I hope this helps. There may be OTHER ways, but this is the method I know-about. :slight_smile:

1 Like

Endlich jemand der Umlaute versteht! :slight_smile:

Your html file should have this meta utf-8 information to handle german special character sets, then you can simple write “Gänsefüßchen” in your strings.

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />