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 (UTF-16) 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

When the RWDBDB2CLILibEnvironmentHandle::unicodeMode() is enabled for the DB Access Module for DB2 CLI, it binds all character types to the type RWBasicUString instead of RWCString. It is recommended that all Unicode-enabled applications use the type RWBasicUString or its derived class RWUString (from the SourcePro Core Internationalization Module) to handle all character data. RWCString can be used, but incurs a costly conversion 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 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 DocumentContentsIndex pageNext 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.
Contact Rogue Wave about documentation or support issues.