Supported code page conversions
When data conversion occurs, conversion will take place from a source code page to a target code page.
The source code page is determined from the source of the data. In general, data from the application has a source code page equal to the application code page, and data from the database has a source code page equal to the database code page.
- In general, if the data is moved directly from an application into a database, with no intervening operations, the target code page is the database code page.
- Data
conversion is based on a set of rules if the data is derived from operations
performed on character data, and the source is any of the following:
- The application code page
- The database code page
- FOR BIT DATA, binary data type, or FOR BLOB data
Character substitutions during code page conversions
When your application converts from one code page to another, it is possible that one or more characters are not represented in the target code page. If this occurs, Db2® inserts a substitution character into the target string in place of the character that has no representation. The replacement character is then considered a valid part of the string. In situations where a substitution occurs, the SQLWARN10 indicator in the SQLCA is set to 'W'.