Text Encoding

Hello! I’m having an issue displaying special characters in a text mesh. I try to show a ó character in a string (that are inside a code) but it displays “??” in the text mesh.
I readed that a problem may be the character encoding in the script itself but i saved it in Unicode, In the font importer, the font is also in Unicode and i checked that have the “ó” character.
Any suggestions? Thank you all! :slight_smile:

I tried this:

function Start () {
	GetComponent(TextMesh).text = "ó";
}

The file is saved as UTF-8, and it works without issues using the default font.

–Eric

Thank you Eric, i’ll try this, this morning :slight_smile:

Okay, something stupid happened to me yesterday, the default save option are UTF-8 and with UTF-8 i don’t see ´`and other special characters, i saved one time with UTF-16 and then, i touched something and ctrl-saved it, (and reversed to UTF-8).
You have to save every time with UTF-16 to see the special characters (at last in macintosh). In UTF-8 i can’t see the special characters

Thank you very much Eric :slight_smile: