如何将Chameleon模拟器的字符编码转换为默认为'latin-1'的'Utf-8'?

问题描述 投票:2回答:1

我想在变色龙模拟器上模拟日语HL7消息。但是当我从文件中选择该消息时,日语字符被显示为Chameleon模拟器中的特殊字符。我希望它显示为日文字符。

如何将Chameleon模拟器的字符编码转换为默认为'latin-1'的'Utf-8'?

utf-8 hl7
1个回答
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
© www.soinside.com 2019 - 2024. All rights reserved.