## wxCSConv

This class converts between any character sets and Unicode. It has one predefined instance, wxConvLocal, for the default user character set.

Derived from

wxMBConv

Include files

<wx/strconv.h>

See also

wxMBConv, wxEncodingConverter, wxMBConv classes overview

Members

wxCSConv::wxCSConv
wxCSConv::~wxCSConv
wxCSConv::LoadNow
wxCSConv::MB2WC
wxCSConv::WC2MB

### wxCSConv::wxCSConv

wxCSConv(const wxChar* charset)

Constructor. Specify the name of the character set you want to convert from/to.

### wxCSConv::~wxCSConv

~wxCSConv()

Destructor.

### wxCSConv::LoadNow

void LoadNow()

If the conversion tables needs to be loaded from disk, this method will do so. Otherwise, they will be loaded when any of the conversion methods are called.

### wxCSConv::MB2WC

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.

### wxCSConv::WC2MB

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.