1. UTF-8 and wxEuphoria
- Posted by Kondor_Attila Sep 09, 2011
- 1133 views
Hello everybody,
I would like go to Ubuntu and to use UTF-8 in wxEuphoria.
if I make aLabel =create( wxStaticText, {IdzWin,-1, "éáöü", 5, 30, 90, 20, wxTE_CENTRE}), or set_label (aLabel,"éáöü") or set_label (aLabel, w_sprintf ( "éáöü","%s" ))
I see after run: éáöü
What can I do?
Thanks!
Attila Kondor
2. Re: UTF-8 and wxEuphoria
- Posted by mattlewis (admin) Sep 09, 2011
- 1143 views
Hello everybody,
I would like go to Ubuntu and to use UTF-8 in wxEuphoria.
if I make aLabel =create( wxStaticText, {IdzWin,-1, "éáöü", 5, 30, 90, 20, wxTE_CENTRE}), or set_label (aLabel,"éáöü") or set_label (aLabel, w_sprintf ( "éáöü","%s" ))
I see after run: éáöü
What can I do?
wxWidgets (the toolkit that wxEuphoria wraps) does not use UTF-8 directly. On Windows, it uses UTF-16, and on Linux, UTF-32 (the native encoding for the respective OS). There are conversion routines:
Matt
3. Re: UTF-8 and wxEuphoria
- Posted by Kondor_Attila Sep 10, 2011
- 1063 views
Thank you very much Matt!
It's all right!
Attila