Output Stream Example
To write out a string encoded in Shift-JIS, use following code.
#include "rw/i18n/RWUToUnicodeConverter.h" // 1
RWCString myString;
// Initialize myString with characters encoded in Shift-JIS
RWUToUnicodeConverter fromShiftJis("Shift-JIS"); // 2
RWObjectOutputStream out = RWXmlObjectOutputStreamImp::make(cout);// 3
out << RWUString(myString, fromShiftJis); // 4