1. UTF-8 and wxEuphoria

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

new topic     » topic index » view message » categorize

2. Re: UTF-8 and wxEuphoria

Kondor_Attila said...

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: UTF-8 and wxEuphoria

Thank you very much Matt!

It's all right!

Attila

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu