Creating Conversion Contexts
A conversion context instance is associated with an encoding at construction time. This association cannot be changed once a conversion context object is instantiated. For example, the following code creates an RWUToUnicodeConversionContext instance for subsequent implicit conversions from ISO-8859-1 to UTF-16:
 
RWUToUnicodeConversionContext fromIso_8859_1Context("ISO-8859-1");
Similarly, the following code constructs an RWUFromUnicodeConversionContext instance for subsequent implicit conversions from UTF-16 to Shift-JIS:
 
RWUFromUnicodeConversionContext toShiftJisContext("Shift-JIS");
The encoding names recognized by the Internationalization Module can be accessed programmatically, as described in Character Encodings.