When writing a new client application, programmers should use Client-Library instead of DB-Library. The information in this section is for sites with existing DB-Library applications.
Unlike Client-Library, DB-Library does not examine environment variables to determine initial localization values. Instead, in DB-Library, initial localization values are pre-defined on a per-platform basis.
An application can change these initial values for a specific connection by changing the language name and character set name in the login record that is used to open the connection:
To change the language name, call DBSETLNATLANG (login,language_name).
To change the character set name, call DBSETLCHARSET (login,charset_name). An application can call DBSETLCHARSET (login,NULL) to specify that the server should not perform character set conversion.
An application can use a different language and character set for each server connection.
See the Open Client DB-Library/C Reference Manual.