While no data exchange with the database is performed, the application runs in Unicode. At runtime, the data sent by the application to the database client are converted once more from Unicode to the corresponding locale encoding. The conversion happens in accordance with the following rules:
After the program is converted, it communicates with the database driver using the database client encoding. The database driver defines whether the database client encoding differs from the database locale and if it does, performs the conversion, if possible.
The database locale is defined using the DB_LOCALE environment variable. The database driver sends the following values to the database from the client locale:
The above listed values are used to verify the database locale and check whether the client and database locale coincide. If the client locale differs from the database locale, the locales must be compatible, otherwise a conversion error will occur. Querix tools do not perform the conversion and cannot influence the database locale, so you must make sure that the conversion between the client locale and database locale is possible. For more information refer to the Informix database documentation.