UTF8

Riccardo Cohen rcohen at articque.com
Thu Nov 22 00:05:56 PST 2007


could you provide a very simple example I'll check that

zeroDwa wrote:
> Riccardo Cohen pisze:
>> you can read this :
>> http://www.wxwidgets.org/manuals/stable/wx_unicode.html#unicode
> 
> simple wxString str(ascii_str, wxConvUTF8);
> define
> 
> #define wxUSE_UNICODE 1
> 
> nothing happened ;(
> still empty string
> 
> 
>> zeroDwa wrote:
>>> What I can use UTF-8 in my wxprograms?
>>> convert normal string to utf-8 .
>>> i use
>>>
>>> wxString ToUTF8(wxString str)
>>> {
>>> wxString mess( str.mb_str(wxConvLocal), wxConvUTF8);
>>> mess.Replace(wxT("&"), wxT("&"));
>>> mess.Replace(wxT("<"), wxT("&lt;"));
>>> mess.Replace(wxT(">"), wxT("&gt;"));
>>> mess.Replace(wxT("\""), wxT("&quot;"));
>>> mess.Replace(wxT("'"), wxT("&apos;"));
>>> mess.Replace(wxT("âŹ"), wxT("&euro;"));
>>> return mess;
>>> }
>>>
>>> but not working ;( not change anything
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> 
> 

-- 
Très cordialement,

Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49




More information about the wx-users mailing list