Latin accentuation using Javascript

I need to display Latin accents on some GUI elements of my game and eventually import some user names from websites which might contain Latin accents. I have no clue how to do it. Whenever I use strings with Latin accents they're replaced with other characters.

4 Answers

4

http://forum.unity3d.com/threads/41035-Accents-in-texts

http://www.google.com/search?hl=en&client=opera&hs=sJ3&rls=en&channel=suggest&q=accents+in+unity3d&aq=f&aqi=&aql=&oq=

Just google around, you can find quiet a lot. But beyond that, I don't have a clue =).

Hi,

First what do you mean with latin accents? Something li "" or "^"?

Then when coding the script yu should set up your editor with the encoding Unicode (UTF-8).

Check this wiki page out. It's an example for displaying cyrillic text, but the idea is the same, only with a different encoding (I imagine UTF-8 like Uzquiano mentioned, but I'm not sure since I never needed to display Latin accents).

Thanks a lot guys. I’ll check carefully all the suggestions. Sorry for the late answer. Actually, this is just a detail on my game. I’ve decided to focus on the major strokes before digging deeper on the details. It’s tempting to get stuck on that kind of detail before solving so many other more important issues. But anyway, thats a problem I’ll have to face ahead anyway and certainly also on other games.

Please don't post comments as answers.