Chilkat Email Components Home

utf-8 is the Multibyte Encoding of Unicode

Back

Question:
(Regarding Chilkat C++ methods and properties returning "const char *"...)
So do I understand you right, if I set the Uft8 property to true and request const chars from the CkString I still get it in unicodes?

Answer:
Yes, you get utf-8, which is the multi-byte encoding for Unicode. It is not 2-byte/char unicode, and it's not wchar_t. Most internationalized web pages, such as Google search result pages, use utf-8. Utf-8 strings are null-terminated. 7-bit characters map exactly to us-ascii, and 8-bit characters are encoded in 2 or more bytes.

There is no source code associated with this article.