Bug : no accents

hi
i’ve got a problem here with automatic unity generated font texture from original ttf with accent font.
No characters with accent is created in the texture file.
Is there a way to correct this, in France a word without accent is a spelling issue.

Thanks.

Franck

ok problem solved, i had to set the character to Unicode in the true type font Importer.

I have another problem:

I need that the object name to have accents
so that i can print the object name:
(texte.GetComponent(TextMesh) as TextMesh).text = nom;

but there is a problem:
if (nom == “été” ) doesn’t work, but if i change the object name to “ete” (no accent) and the condition to “ete”, it works. but there is still a spelling problem

Does anyone have an idea ?

Works fine, just use UTF-8 for scripts.

–Eric

1 Like

how can i do this ?

Depends on what script editor you’re using. It would be a setting somewhere.

–Eric

Well, i’m using the standard unity script editor for mac. But you are right, when the script’s preview in the inspector, there is no letter with accent. I just had to go to the menu/text encoding/Unicode UTF8 in the script editor.
And now it works perfectly
Youhoo !
Thanks

If you create your C# script within Unity’s IDE, it’ll work fine, but if you create it inside MonoDevelop’s IDE, It’ll break. I’m not sure why.

File Created on Unity’s IDE using Assets > Create > C# Script
1362294--67871--$Screen Shot 2013-09-18 at 8.14.20 PM.png

File Created on MonoDevelop’s IDE using File > New > File > C# > Empty Class
1362294--67870--$Screen Shot 2013-09-18 at 8.14.27 PM.png

RESULT:
1362294--67872--$Screen Shot 2013-09-18 at 8.11.55 PM.png

*Using Unity 4.2.1f4

Update: Both files were edited on MonoDevelop and saved as UTF-8

Please submit a bug report.
Thanks!

Are the two files binary identical? Maybe one is missing a BOM? (Obviously edit the Mono one to have Editor in the debug.log first.)