Unicode to database code set

Java is Unicode based, so Informix® JDBC Driver converts data between Unicode and the Informix® database code set. The code-set conversion value is extracted from the DB_LOCALE value specified at the time the connection is made. If the DB_LOCALE value is incorrect, a Database Locale information mismatch error occurs.

The DB_LOCALE value must be a valid Informix® locale, with a valid Informix® code-set name or number as shown in the compatibility table that follows. The following table maps the supported Java development kit encodings to Informix® code sets.
Informix® code set name Informix® code set number JDK code set
8859-1 819 8859_1
GB18030-2000 5488 GB18030

You cannot use the Informix® locale with a code set for which there is no JDK-supported encoding. This incorrect usage results in an Encoding or code set not supported error message.

The supported locales are en_us and zh_cn.