2

I want to simulate japanese HL7 message over chameleon simulator. But when I select that message from file, japanese characters are being displayed as special characters into Chameleon simulator. I want it to be displayed as japanese characters.

How can I convert character encoding of Chameleon simulator to 'Utf-8' which is default 'latin-1'?

4

1 回答 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
于 2015-11-19T05:35:59.620 回答