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.
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.
This section defines any limitations relevant to the DB Access Module for DB2 CLI and SourcePro DB.
SourcePro DB does not support Unicode logins, passwords, or metadata.
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).
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.