Treating wxString content as Unicode
Manuel Martín
mmartin at ceyd.es
Thu Sep 6 12:46:56 PDT 2007
Hi,
>>> After downloading an XML file containing Unicode characters I want to display its content,
>>> but the letters aren't interpreted as Unicode.
>>> Basically this is what I want:
>>> wxString name( T("Lőrinc"));
>>>
>>> and I want
>>> wxMessageBox (name);
>>>
>>> to display:
>>> Lőrinc
>> If you will use unicode build of wxWidgets, all wxStrings are in unicode.
>
> yes, and my multibyte unicode characters are stored each as many unicode characters,
> that's why it displays tanÃÂtókölteménye becuse in ó for ex. both characters
> are encoded as Unicode.
> How can I interpret it as being the unicode representation of the string, to replace
> every ó with á etc?
I think you must explicit tell the encoding four your Unicode strings
reading.
Perhaps this posts will be helpful:
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?8:mss:94194:200610:hljgalnnllihfkjijnlh
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?8:msn:94194:hljgalnnllihfkjijnlh
HTH
Manolo
More information about the wx-users
mailing list