Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: figtree on February 12, 2013, 12:22:38 PM

Title: Can't dynamically add text with accents / special characters
Post by: figtree on February 12, 2013, 12:22:38 PM
Greetings!
So, i've been trying to change my text dynamically. It's written in portuguese and we do use many "special" characters.
The thing is, while the text works ok when i type it on the inspector. But whenever i try to change it via script, i get characters like "§" instead of the accented.

I've tried to follow this thread's instructions:
http://www.tasharen.com/forum/index.php?topic=1801.msg9010#msg9010
, but whenever i save my .CS in UTF-16, i recieve a parsing error and cannot even edit the file...

Halp please!
Title: Re: Can't dynamically add text with accents / special characters
Post by: figtree on February 12, 2013, 12:57:18 PM
~Allright~ Solved it.

I've opened the .CS file on Notepad++ and exported to UTC-8. Works perfectly.
Title: Re: Can't dynamically add text with accents / special characters
Post by: Ransu on February 13, 2013, 05:10:56 PM
Had the same issue!
å, ä, ö wouldn´t show up. Unless you "forced" them by writing the text in the inspector in Unity3d 8also caused some problems).
Saving as UTF16 gave parsing errors, as u described.

Downloaded Notepad++, saved as UTF8, and all is fine. Seem to be an issue with Monodevelop.