HydraExpress supports the internationalization of your Web services through character and string conversion to and from UTF-8 and your native encoding.
When you input XML Schemas and WSDLs with a character encoding other than UTF-8 to the HydraExpress code generator, the Xerces-J parser used internally by HydraExpress automatically converts the string data to UTF-8 from the encoding specified in the document's prolog.
When using the generated classes to parse non-UTF-8 XML documents, HydraExpress automatically converts the string data to UTF-8 before unmarshaling, according to the encoding specified in the document's prolog. On marshaling, the string data remains in UTF-8.
You may customize HydraExpress in a number of ways in order to work with your characters in another encoding.
This chapter includes
a discussion on how HydraExpress performs character conversions internally, and two ways to customize your character encoding
creating an automatic character conversion to maintain the data strings in your C++ classes in a non-UTF encoding
creating a custom converter to output string data in a non-UTF-8 encoding
background information on character encodings and Unicode
While the basic functionality exists in HydraExpress to perform custom conversions, we recommend that you use the Internationalization Module of SourcePro Core, which offers a comprehensive set of tools for manipulating non-UTF-8 encodings. The Internationalization Module can convert a byte stream to and from any encoding and UTF-16, and offers advanced manipulation of strings, such as collation, Unicode regular expression searches, and resource bundles.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.