Example
The following examples illustrate how to perform conversions using
RWFromUTF8Converter and
RWToUTF8Converter.
Converting from UTF-8 to UTF-16 RWWString destination; // 1
RWCString source(“My UTF8 characters”);
RWFromUTF8Converter converter; // 2
converter.convert(source,destination); // 3
Converting from UTF-16 to UTF-8 RWWString newSource(destination);
RWCString newDestination; // 1
RWToUTF8Converter converter; // 2
converter.convert(newSource,newDestination); // 3