- Home /
How can I use special characters (symbols) in GUI.Label " " and so on?
I have a text in (Windows 7 64 + Unity 2.6.1) that looks fine in UniSciTE and compiles perfectly the problem is that while the rest of the text is displayed two special characters, (symbols) disappear in game.
GUI.Label(Rect(13,45,225,120),"Lerpolis created by ...blah,blah.",customMenuText01);
It prints as "Lerpolis created by ... blah,blah". I can see in my Futura font texture that "" symbol exists a line before the end. Is that a bug or I have to do something special to use these characters? I write for example the TM character in UniSciTE with alt-0153.
Answer by AliAzin · Aug 20, 2010 at 07:44 PM
You should save the text in Unicode format. You can change the encoding in "file->encoding "
I change it to UTF 8 and it works thanks a lot ! What are the others UTF with BO$$anonymous$$ , UCS-2 Little and Big Endian ? The wikipedia entry goes really quickly to hex code and is a bit confusing !!! do you have more characters like Chinese etc ?