Specify code-set names

You can specify the names of the source and destination code sets with either locale names, code-set names, or the IFX_GL_PROC_CS macro.

  • Locale names

    For information about locale names, see the Informix® GLS User's Guide.

  • Code-set names

    You can find the names of code sets in code-set name registry.

    The code-set name registry is in %INFORMIXDIR%\gls\cmZ for Windows™ and in $INFORMIXDIR/gls/cmZ for UNIX™.

    In the preceding path names, INFORMIXDIR is the environment variable that specifies the directory where you install the HCL Informix product, and Z represents the version number for the code-set object-file format.

  • The IFX_GL_PROC_CS macro

    This macro specifies use of the code set of the current processing locale. Depending on the context, the value of IFX_GL_PROC_CS is based on either the client environment or the database that the database server is currently accessing.

The preceding formats are valid as code-set names in any of the following functions:
  • ifx_gl_conv_needed()
  • ifx_gl_cv_mconv()
  • ifx_gl_cv_outbuflen()
  • ifx_gl_cv_sb2sb_table()