Accentuated Characters using TextMesh from script

I am to show accentuated characters using TextMesh from script, using the Inspector the TextMesh rendering looks ok, but if I set the text using the script it shows some weird characters.

For example in inspector if I set the text to “¡holá!” it renders “¡holá!” but using the script it renders “áholá!”.

Any ideas on how to solve this?

I am using Windows and Visual Studio as the editor.

Have you tried to change the encoding of the script file to “UCS-2 Little Endian”?
Open it with notepad++, menu “Encoding → Encode in UCS-2 Little Endian”
Hope it helps!