GUI.Label(...) to display text with Accentuation

Hello

I would like display a text width accentuation like “é”.
If i use this code: GUI.Label(Rect(0,0,100,20),“aéa”,myFont);
this display juste “aa” without “é” !!!
myFont is Arial in unicode and i can see in texture font the character “é” but unity don’t want display it.
An idea ?

Thanks
Laurent

You’ll need to verify that the font you are using supports the glyphs you wish to display. Even then, I’ve run into intermittent trouble displaying the glyphs contained within a typeset. Sometimes a glyph will render in my text editor and the Unity GUI, sometimes only my text editor, sometimes neither. You may want to try some similar Unicode typeset fonts and find the one that renders most of your desired characters. Some I’ve played with are Helvetica, Geneva, and Lucida Sans Unicode. I didn’t have much luck with Arial Unicode. I’m still investigating if there is a TTF font size limit for Unity.

You also have to make sure you’re using UTF-8 when saving the code.

–Eric

Yes !!! felicitation it’s that !!!
I convert my file width Ultra-Edit menu “File/Convertion/ASCII to UTF-8” and it work.

Thanks for your solutions

Thank you for the UTF8 file tip!!!
Thanks also to Christopher

Yay for necrobumping. :wink: I’ve since discovered that UTF-8 only seems to apply to Unityscript; C# appears to need UTF-16.

–Eric