using unicode strings in ansi build

Vadim Zeitlin vadim at wxwindows.org
Sat Aug 5 12:58:05 PDT 2006


On Sat, 05 Aug 2006 21:19:37 +0300 Alexander Vassilev <avasilev at voipgate.com> wrote:

AV> I would like to know if it is possible to use unicode wx-strings in an 
AV> ansi build.

 No, wxString uses char in ANSI build.

AV> I need this because I am using utf8 strings which i have to 
AV> process and convert them to Geck widechar strings.

 However you can use wxMBConv stuff available in ANSI build as well
(provided you didn't turn off wxUSE_WCHAR_T) and this should be all you
need.

AV> with wx-strings or i have to use STL strings?

 Standard wstring class won't help you at all as it doesn't support UTF-8.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list