Special characters in TextBlock

Hi,

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.

http://www.javascripter.net/faq/accentedcharacters.htm

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.

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