Author Topic: Russian font errors in PC-build  (Read 3083 times)

GantZ_Yaka

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Russian font errors in PC-build
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Russian font errors in PC-build
« Reply #1 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.

GantZ_Yaka

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: Russian font errors in PC-build
« Reply #2 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