Resource_FormatType_iso8859_8, //!< ISO 8859-8 (Hebrew) encoding
Resource_FormatType_iso8859_9, //!< ISO 8859-9 (Turkish) encoding
+ // Addition code pages
+ Resource_FormatType_GBK, //!< GBK (UnifiedChinese) encoding
+ Resource_FormatType_Big5, //!< Big5 (TradChinese) encoding
+
// old aliases
Resource_FormatType_ANSI = Resource_FormatType_NoConversion,
Resource_SJIS = Resource_FormatType_SJIS,
}
break;
}
+ case Resource_FormatType_Big5:
+ {
+ ConvertBig5ToUnicode(theFromStr, theToStr);
+ break;
+ }
+ case Resource_FormatType_GBK:
+ {
+ ConvertGBKToUnicode(theFromStr, theToStr);
+ break;
+ }
case Resource_FormatType_UTF8:
{
theToStr = TCollection_ExtendedString (theFromStr, Standard_True);
const NCollection_Utf16String aString (theFromStr.ToExtString());
return aString.ToLocale (theToStr, theMaxSize);
}
+ case Resource_FormatType_GBK:
+ case Resource_FormatType_Big5:
+ {
+ throw Standard_NotImplemented("Resource_Unicode::ConvertUnicodeToFormat - convert from GBK and Big5 to Unocode is not implemented");
+ }
}
return Standard_False;
}