|
I am trying to display some text in guiText.text with some special characters like "ç" or "ã" Those characters are showed like "ç" and "ã". Sounds like a string encoding problem. I have tried to save script files in other encodings but it still fails. Someone solve this issue?
(comments are locked)
|
|
It works if you save the script as UTF-8. Do not work for me. I open script file with notepad++ then save in UTF-8. I am following the example of the book Essentials. Who needs font named sugo, download from http://www.dafont.com/ But this font is .otf. (maybe the problem is the font)
Nov 10 '11 at 11:05 AM
RichardKbr
Sorry for delay!
obs - For me files are UTF8 without BOM (without BOM do not work for me).
Dec 22 '11 at 04:26 PM
RichardKbr
(comments are locked)
|
|
You have to use a font that supports UTF (or whatever encoding you need). You might also have to change the font's Character Setting in the Inspector:
Here's what the docs say: http://unity3d.com/support/documentation/Components/class-Font.html Sorry, but did not work for me. Maybe problem is the font named sugo downloaded from http://www.dafont.com/ (fails whit arial too). I tried this approach (change Dynamic to: Unicode or ASCII) did not work and is very slow even when the text shows.
Nov 10 '11 at 11:13 AM
RichardKbr
(comments are locked)
|


