Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internationalization Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

2.6 Multilingual Text in C++

The C++ Standard defines two character sets, the basic source character set and the execution character set (sometimes called the machine character set):

For the typical desktop computing environment, the two character sets are the same. But for a localized application, they may differ.

The basic source character set consists of the space character and control characters representing the horizontal tab, vertical tab, form feed, and new-line, plus the following 91 graphical characters:

All compilers must support this minimum set, but may extend the set. Compilers may use any character encoding form to represent the basic source character set.

The execution character set includes the basic source character set, plus control characters for alert, backspace, carriage return, and null, plus additional implementation-defined characters.

The C++ Standard does not dictate any particular execution character encoding forms. In particular, the encoding forms used for the execution character sets need not match the encoding form used for the basic source character set.

The choice of execution character encoding form may be governed by:

To provide a way to represent characters outside the basic source character set, the C++ Standard defines the universal character name construct. An escape sequence of the form \uXXXX or \uXXXXXXXX, where XXXX or XXXXXXXX is a hexadecimal value, specifies a code point in the ISO/IEC 10646 and Unicode coded character sets.

Your compiler maps each basic source character, universal character name, and any escape characters that appear in a character or string literal into an equivalent execution character set representation. The literals created by this transformation are incorporated into the object code of the C++ translation unit.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.