Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: GantZ_Yaka on January 08, 2014, 09:48:00 PM

Title: Russian font errors in PC-build
Post by: GantZ_Yaka on January 08, 2014, 09:48:00 PM
Help me pls. I made atlas with russian font. In Unity-editor font displayed excellent, in Web-build font displayed excellent, but when I changing target platform to PC - font breaks. But not in all cases. I noticed that it happens when I input the text in the script as follows:
UILabel.text = "My text";
I try to recreate my atlas, try different fonts - and get the same result.
Could there be a problem in the encoding? UTF-8, Unicode of other..? Help me please.
Title: Re: Russian font errors in PC-build
Post by: ArenMook on January 08, 2014, 09:52:13 PM
Generally yes. If you're specifying non-ASCII characters in your code, you need to make sure that the string you're specifying is UTF-8. I suggest you take advantage of the Localization feature. Don't hard-code anything like that.
Title: Re: Russian font errors in PC-build
Post by: GantZ_Yaka on January 10, 2014, 01:40:55 AM
The problem was solved when I changed the encoding of the script entirely in monodevelop editor to Unicode  :D