To ensure that line-break characters are correctly transcoded between Unicode and a host character set, use the ILineBreakConverter class, either to preprocess strings before converting them to a host character set or to postprocess strings after converting them into Unicode.
transcoder->toUnicode(hostText, unicodeText); // After transcoding, postprocess the line breaks. ILineBreakConverter::convertInPlace(unicodeText); // ...Operate on unicodeText // Before transcoding out of Unicode, preprocess the line breaks ILineBreakConverter::convertInPlace(unicodeText, ILineBreakConverter::kHost); transcoder->fromUnicode(unicodeText, hostText);
Transcoding Classes
Transcoder Names