Enabling the GLS for Unicode (GLU) feature

The GLS for Unicode (GLU) is a feature that allows your application to use the International Components for Unicode (ICU) libraries instead of the usual GLS libraries when handling Unicode.

About this task

The main advantage of using the ICU libraries is that they take the locale into account when collating Unicode characters, the GLS libraries do not.

To enable GLU:

Procedure

  1. Compile your application by using the -glu option to the esql command.
  2. Set the GL_USEGLU environment variable to 1 in the environment of both client and database server. The GL_USEGLU environment variable must be set to a value of 1 (one) before the server is started, and before the database is created.
  3. Choose a locale that uses either Unicode or GB18030-2000 as a code set.