Output wxString as UTF8
Milan Babuskov
milanb at panonnet.net
Sat Sep 30 05:53:10 PDT 2006
Vadim Zeitlin wrote:
> MB> > And, of course, you probably want to handle the errors of cMB2WC()
> MB> > call in some other way than just returning an empty string.
> MB>
> MB> What kind of errors should I expect? Shouldn't any string be convertible
> MB> to Unicode?
>
> No because you use a specific conversion (wxConvCurrent) and the string
> may contain [sequences of] characters which are not valid for this
> conversion.
Well, that's ok then. In my case the string is entered by the user via
wxTextCtrl or whatever - so it has to be valid.
Thanks for explanation.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
More information about the wx-users
mailing list