Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: skinsomnia on April 09, 2013, 12:33:31 PM

Title: Problem with encoding
Post by: skinsomnia on April 09, 2013, 12:33:31 PM
Hi,
Great product btw, I bought NGUI a while ago and everything went smoothly up to this point. I ran into a weird problem today with cyrilic letters on NGUI labels. When I enter the label text through the inspector it works fine. When I try to change the text field during runtime through a script tho, characters are displayed all messed up. Any idea on how to fix that?

Thanks,
Zdravko
Title: Re: Problem with encoding
Post by: ArenMook on April 09, 2013, 09:36:24 PM
Your code file must be saved as UTF-8 with signature.
Title: Re: Problem with encoding
Post by: Malzbier on April 10, 2013, 05:21:26 AM
My trick is to use this website to escape the special characters so it does not mess up the characters in NGUI.

Unicode escape notations generator
http://luracast.com/blog/unicode-escape-notations-generator_752/

Just paste the text and press the "convert to notation" Button.

Saving the script files as UTF8 does not work for me the most time , so i can work around it.
Title: Re: Problem with encoding
Post by: sparrow on October 01, 2013, 05:55:58 PM
Would be really cool if this class would decode Unicode escaped characters in jsonDecode function.