This class converts between any character sets and Unicode. It has one predefined instance, wxConvLocal, for the default user character set.
Derived from
Include files
<wx/strconv.h>
See also
wxMBConv, wxEncodingConverter, wxMBConv classes overview
Members
wxCSConv(const wxChar* charset)
wxCSConv(wxFontEncodingencoding)
Constructor. You may specify either the name of the character set you want to convert from/to or an encoding constant. If the character set name is not recognized, ISO 8859-1 is used as fall back.
~wxCSConv()
Destructor frees any resources needed to perform the conversion.
size_t MB2WC(wchar_t* buf, const char* psz, size_t n) const
Converts from the selected character set to Unicode. Returns the size of the destination buffer.
size_t WC2MB(char* buf, const wchar_t* psz, size_t n) const
Converts from Unicode to the selected character set. Returns the size of the destination buffer.