Problem with NGUI UILabel not showing some special characters in French and Spanish...
I'm using NGUI and it's built in localisation system, but I'm having some problems in the editor with some of the special characters not showing in my UILabel.
For instance the French phrase 'RESTEZ À L'AFFÛT' when I run the game is showing on the label at runtime as RESTEZ � L'AFF�T So some of the characters are replaced with a question mark in a diamond.
You can see an example image here... http://prntscr.com/hyvj5e
The font definately has those characters in its set of glyphs, so that is not the issue.
In fact if I go and paste the word from the text file onto the label at runtime, it then shows correctly in the editor? Why would it show the incorrect version, then allow the value to be pasted manually?
I've tried both Unity and NGUI font options, the Unity Font option shows the question marks, the NGUI font option just doesn't render a character at all.
Any ideas why this is happening or a way to fix it?
Thanks
Answer by Meltdown · Jan 11, 2018 at 08:52 AM
Solved : I opened the .txt files in NotePad++ Went to ENCODING => CONVERT TO UTF-8 SAVE
All works well now.
Your answer
Follow this Question
Related Questions
TextMeshpro arabic fonts stop displaying more than one word(last one) 1 Answer
Resizing font by scale according to screen size, (More complicated than you might think) 1 Answer
How To Load TTF Font From External File 0 Answers
Smart localization asset with the Unity Samples: UI 2 Answers
label, How to get first character in each line? like ngui or ugui 0 Answers