A separate class, CnvUtfConverter
, is provided for
converting text between Unicode (UCS-2) and the two Unicode transformation
formats UTF-7 and UTF-8. The four conversion functions, all static, are
ConvertFromUnicodeToUtf7()
,
ConvertFromUnicodeToUtf8()
,
ConvertToUnicodeFromUtf7()
, and
ConvertToUnicodeFromUtf8()
.
There is no direct way to convert between UTF-7 and UTF-8. Though it is possible to convert from one transformation format to UCS-2 and then from UCS-2 to the other transformation format.