Globalization

The provides functionality based on Informix® Global Language Support.

The ITLocale class, described in The ITLocale class, encapsulates the GLS API. It provides methods to perform locale-sensitive conversions between the text and binary forms of the date, time, numeric, and money data types. It also provides support for multibyte character strings and for quoted type names.

Call ITLocale::Current() to obtain a pointer to the current client locale and use ITLocale::ConvertCodeset() to convert data between the two code sets.

The ITString class encapsulates a string in a client locale. When a string is retrieved from a server, it is converted to the client locale. Locale-specific rules govern the following operations:
  • Date/time, numeric, and money string formatting
  • Error messages produced by the Object Interface for C++
  • String operations such as Trim(), concatenation, and other operations

Client locale is established at the startup time of the application based on the value of the CLIENT_LOCALE environmental variable.

For more information, see the Informix GLS User's Guide.