nord666
08-11-2008 21:34:20
Hello,
I have some problems with the setCaption function.
I want to display "Créer un serveur" (it's in french). But, i got an error because there's the "é". Also, the 2 spaces are "deleted".
If i want to display "Creer un serveur", i see "Creerunserveur". I tried to convert from UTF-16 to UTF-8 but it doesn't change anything.
Can someone help me please?
Thank
Altren
08-11-2008 22:20:34
Show your chages you made in core_font.xml (if you made). Show full lines of code you writing for setting caption. We'll try to reproduce your bug.
Try to add L before your string.
nord666
08-11-2008 22:23:37
I solved my problem by copying the files form the MyGUI's media folder to mine and now it's working for the spaces! But now the "é" is becoming a space.
Illidanz
09-11-2008 09:06:57
I solved my problem by copying the files form the MyGUI's media folder to mine and now it's working for the spaces! But now the "é" is becoming a space. 
You have to add special keys in your core_font.xml file.
This is mine (working with all italian characters):
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Font">
<Font name="Default" default_height="17" source="DejaVuSans.ttf" size="19" resolution="50" antialias_colour="false" space_width="4" tab_width="8" cursor_width="2" distance="6" offset_height="0">
<Code range="32 242"/>
</Font>
<Font name="DejaVuSans.17" default_height="17" source="DejaVuSans.ttf" size="19" resolution="50" antialias_colour="false" space_width="4" tab_width="8" cursor_width="2" distance="5" offset_height="0">
<Code range="32 242"/>
</Font>
<Font name="DejaVuSans.14" default_height="14" source="DejaVuSans.ttf" size="16" resolution="50" antialias_colour="false" space_width="4" tab_width="8" cursor_width="2" distance="7" offset_height="0">
<Code range="32 242"/>
</Font>
</MyGUI>
Altren
09-11-2008 13:54:11
But now the "é" is becoming a space. 
Any character that not in range in font file replaced with space, so it's ok. And there's warning in logs about that character.