DB_LOCALE

 

Specifies the Informix database locale, which the Informix database server uses to process locale-sensitive data.

 

Syntax:

 

DB_LOCALE=<language>_<territory>.<code_set>@modifier

 

Possible values:

 

Value

Description

<language>

Two-character name that represents the language for a specific locale.

<territory>

Two-character name that represents the cultural conventions. For example, territory might specify the Swiss version of the French, German, or Italian language.

<code_set>

Name of the code set that the locale supports.

@modifier

Optional locale modifier that has a maximum of four alphanumeric characters.

The modifier specification modifies the cultural-convention settings that the language and territory settings imply. The modifier can indicate a localized collating order that the locale supports. For example, you can set @modifier to specify dictionary or telephone-book collation order.

 

 

Usage:

 

The DB_LOCALE environment variable specifies the Informix database locale, which the Informix database server uses to process locale-sensitive data.

 

IBM® Informix® products use the DB_LOCALE environment variable for the following purposes:

 

 

The encoding in the DB_LOCALE must match the encoding of the database.

 

If you do not set DB_LOCALE on the client computer, client applications assume that the database locale has the value of the CLIENT_LOCALE environment variable. The client application, however, does not send this default value to the database server when it requests a connection.

 

The DB_LOCALE environment variable applies at runtime (inet.env).

 

Example:

 

Setting the French locale for Canada, and the ISO 8859-1 character set will look as follows:

 

DB_LOCALE=fr_ca.8859-1

 

 

CLIENT_LOCALE

Localization Settings