Author Topic: Can't dynamically add text with accents / special characters  (Read 1972 times)

figtree

  • Guest
Can't dynamically add text with accents / special characters
« 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!

figtree

  • Guest
Re: Can't dynamically add text with accents / special characters
« Reply #1 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.

Ransu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Can't dynamically add text with accents / special characters
« Reply #2 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.