Administration Guide
The application code page is derived from the active environment
when the database connection is made. If the DB2CODEPAGE environment variable
is set, its value is taken as the application code page. The database
code page is derived from the value specified (explicitly or by default)
at the time the database is created. The following defines how the active
environment is determined in different operating environments, for
example:
- UNIX
- In UNIX-based environments, the active environment is determined from the
locale environment variables, which include information about language,
territory and code set.
- OS/2
- In OS/2, primary and secondary code pages are specified in the
CONFIG.SYS file. You can use the chcp command to display
and dynamically change code pages within a given session.
- DOS
- In DOS, the active code page is determined by the value specified in the
COUNTRY command in the CONFIG.SYS file. You can use the
chcp command to display and dynamically change code pages within a
given session.
- Macintosh
- For the Macintosh operating system, if the DB2CODEPAGE environment
variable is not set, the Macintosh code page is derived from the Regional
version code from the installed script.
- Windows
- For Windows, if the DB2CODEPAGE environment variable is not set, the
Windows code page is derived from the country ID, as specified in the
iCountry value in the [intl] section of the
Windows WIN.INI file.
- Windows 95
- For Windows 95, if the DB2CODEPAGE environment variable is not set, the
Windows 95 code page is derived from the ANSI code page setting in the
Registry.
- Windows NT
- For Windows NT, if the DB2CODEPAGE environment variable is not set, the
Windows NT code page is derived from the ANSI code page setting in the
Registry.
For a complete list of environment mappings for code page values, see the Table 101.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
[ DB2 List of Books |
Search the DB2 Books ]