Home | Previous Page | Next Page   GLS Fundamentals > Setting a GLS Locale >

Setting a Nondefault Locale

By default, IBM Informix products use the U.S. English locale, but IBM Informix products support many other locales.

To use a nondefault locale, you must set the following environment variables:

To access a database that has a nondefault locale, the CLIENT_LOCALE and DB_LOCALE settings on the client system must support this nondefault locale. Both locales must be the same, or their code sets must be convertible, as described in Performing Code-Set Conversion.

For example, to access a database with a Japanese SJIS locale, set both DB_LOCALE and CLIENT_LOCALE to ja_jp.sjis on the client system. (If you set DB_LOCALE but not CLIENT_LOCALE, the client application returns an error, because it cannot set up code-set conversion between the SJIS database code set and the code set of the default locale on the client system.)

When a client application requests a connection, the database server uses information in the client, database, and server locales to create the server-processing locale. For more information, see Establishing a Database Connection.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]