UNICODE support in the C++ Standard

The Oxford meeting of the ISO C++ standards committee between 15-20 April resulted in new features beeing into the draft paper of the C++0x standard.

One of the features refer to Unicode support: a new header, called <cuchar>, was introduced. This header makes available new built-in types char16_t and char32_t, as well as new prefixes u and U to designate UTF-16 and UTF-32 encoded characters and strings.

char16_t c16 = u'A'; 

char32_t c32 = U'A';  

char16_t* str16 = u"this is a UTF-16 encoded string";  

char32_t* str32 = U"this is a UTF-32 encoded string";

A list of all papers submited before the Oxford meeting can be found here.

More about the results of the Oxford meeting can be found in:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.