Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
DB Access Module for DB2 CLI User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

2.10 Internationalization

SourcePro DB fully supports the Unicode data standard. This functionality allows you to move Unicode data to and from your Unicode-enabled database. Please refer to your DB2 documentation for how to create a Unicode database.

2.10.1 Data Bindings

The DB Access Module for DB2 CLI fetches string data into the string type used for the result column by the database client. If your application uses a UTF-16 code page, it is recommended that you enable RWDBDB2CLILibEnvironmentHandle::unicodeMode() so that all character types bind to the type RWBasicUString instead of RWCString.

Using RWBasicUString or its derived class RWUString (from the SourcePro Core Internationalization Module) to handle all UTF-16 character data avoids costly conversions from UTF-16 to UTF-8. Please refer to section Section 2.15 for more information on RWDBDB2CLILibEnvironmentHandle.

2.10.2 Limitations

This section defines any limitations relevant to the DB Access Module for DB2 CLI and SourcePro DB.

2.10.2.1 Metadata

SourcePro DB does not support Unicode logins, passwords, or metadata.

2.10.2.2 Use of RWWString in Unicode Applications

Due to platform inconsistencies, Rogue Wave recommends that you do not write Unicode applications using RWWString with character and graphic data. On platforms where a wchar_t is defined as greater than 2 bytes, a costly conversion will occur to convert your data from 2-byte UTF-16 to 4-byte padded UTF-16. Furthermore, after the conversion, your application will still not have valid Unicode. Whether the size of wchar_t is 2 bytes or 4 bytes, the RWWString will represent only UTF-16 data, not a true wide string, as it has not been localized. Rogue Wave recommends using one of our Unicode string containers, RWBasicUString (from the Essential Tools Module) or RWUString (from the Internationalization Module).



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.