mvelazquezm
14-09-2010 11:00:54
Hi
I have a game with spanish texts, and I dont know how put special characters. I get encodig error with á, é, í, ó, ú, ñ.
I paste my text from code. In my layout, statictext and wordwrap have empty caption.
Any help?
Thanks!!
Altren
14-09-2010 13:15:39
In code you should use 'L' before text to make it utf - something like widget->setCaption(L"á, é, í, ó, ú, ñ");. In layout you don't need to do anything special.
Also you need to add range of this characters into font definition. In core_font.xml add lines or line like <Code range="first_code last_code"/>. If your character code not in font you'll get space instead of that character in runtime.
mvelazquezm
15-09-2010 07:52:30
In code you should use 'L' before text to make it utf - something like widget->setCaption(L"á, é, í, ó, ú, ñ");. In layout you don't need to do anything special.
Also you need to add range of this characters into font definition. In core_font.xml add lines or line like <Code range="first_code last_code"/>. If your character code not in font you'll get space instead of that character in runtime.
It works!
Thanks!