.\" This is a wxWidgets manpage page generated from the XML docs .TH wxMBConvUTF8 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxMBConvUTF8 \- .SH DESCRIPTION This class converts between the UTF-8 encoding and Unicode. It has one predefined instance, wxConvUTF8 . .SH REMARKS UTF-8 is a compatibility encoding used to encode Unicode text into anything that was originally written for 8-bit strings, including (but not limited to) filenames, transfer protocols, and database fields. Notable properties include: Variable-length encoding able to encode up to 31 bits per character ASCII characters (character values under 128) are encoded as plain ASCII (1 byte per character) Null bytes do not occur in the encoding, except when there's an actual Unicode null character Preserves sort ordering for plain 8-bit comparison routines like strcmp() High bit patterns disambiguates character boundaries, and makes it easy to detect whether a string is encoded with UTF-8 or not All of these properties make UTF-8 a very favorable solution in any situation where full Unicode character support is desired while remaining compatible with code written with only 8-bit extended-ASCII characters in mind. .SH "PARENTS" wxMBConv .SH "INCLUDE FILES" wx/strconv.h .SH MEMBERS .SS size_t MB2WC (wchar_t* bufconst char* pszsize_t n) Converts from UTF-8 encoding to Unicode. Returns the size of the destination buffer. .SS size_t WC2MB (char* bufconst wchar_t* pszsize_t n) Converts from Unicode to UTF-8 encoding. Returns the size of the destination buffer. .SH "SEE ALSO" wxMBConv wxMBConvUTF7 wxMBConv classes overview .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.