Author Topic: UILabel not showing accented characters  (Read 4027 times)

rtargosz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
UILabel not showing accented characters
« on: March 29, 2014, 12:10:35 PM »
I'm adding localization to my game in preparation for shipping. Initially, I want to ship with French and English support in the GUI then add more locales later on. Unfortunately, now that I've started this it looks like it might be broken or changed since the last tutorials were updated (I'm on 3.5.5)

I've tried using both a single Localization.csv and two text files English.txt and French.txt. I can switch languages back and forth and my GUI updates, but when I'm in French I don't see any of the special/accented characters like è, é, à and œ. I found several forum posts and articles, but re-encoding into UTF-8 format doesn't help.

Furthermore, I can no longer see the NGUI UILabel "encoding" option in 3.5.5 that was there in earlier versions. I tried forcing this to be true for all UILabels with no effect on the accents.

Any help/guidance is greatly appreciated!
Thanks,
Rob Targosz
Bent Vector Studios

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel not showing accented characters
« Reply #1 on: March 30, 2014, 07:07:39 AM »
To display special characters like that you need to make sure they exist in the font you're using. If the font doesn't have them, then they won't show up. "Encoding" option was simply letting you use BBCode tags in your labels such as [99ff00] to change the color.

rtargosz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: UILabel not showing accented characters
« Reply #2 on: March 31, 2014, 07:57:34 AM »
Now I just feel embarrassed by how exceedingly obvious that should have been. Thanks Michael.
-Rob