如何将变色龙模拟器的字符编码转换为“Utf-8”,这是默认的“latin-1”?
我想在变色龙模拟器上模拟日本HL7消息。但当我从文件中选择该消息时,日文字符作为特殊字符显示在变色龙模拟器中。我希望它显示为日语字符如何将变色龙模拟器的字符编码转换为“Utf-8”,这是默认的“latin-1”?,utf-8,hl7,Utf 8,Hl7,我想在变色龙模拟器上模拟日本HL7消息。但当我从文件中选择该消息时,日文字符作为特殊字符显示在变色龙模拟器中。我希望它显示为日语字符 如何将变色龙模拟器的字符编码转换为“Utf-8”,这是默认的“latin-1” 在接收消息之前,请尝试以下操作: ChameleonEncoding.SetCurrentTranslationLocale("utf-8"); // Tell Chameleon to use current Chameleon Locale 或者您可以只使用本地语言环境: _
如何将变色龙模拟器的字符编码转换为“Utf-8”,这是默认的“latin-1” 在接收消息之前,请尝试以下操作:
ChameleonEncoding.SetCurrentTranslationLocale("utf-8"); // Tell Chameleon to use current Chameleon Locale
或者您可以只使用本地语言环境:
_currentLocale = ChameleonEncoding.GetCurrentTranslationLocale(); // Get the current Chameleon Locale
ChameleonEncoding.SetCurrentTranslationLocale(_currentLocale); // Tell Chameleon to use current Chameleon Locale
在chameleon中显式定义字符集。