ASCII String Showing Japanese Characters w/Codesys

ASCII String Showing Japanese Characters w/Codesys https://forum.weintekusa.com/uploads/db0776/original/2X/e/eeed5577e00d9eb7bcabaaabf483a083cc1e3bcc.png
none 0.0 0
  • HMI Model: cMT-SVRX-820
  • EasyBuilder Pro Version: 6.10.01

I have a library of graphics I’ve developed using EBP with Codesys on board that was running on a cMT-3108XP and worked great when setting the encoding to be Unicode.

Now I’m using that same library of graphics on a cMT-SVRX-820 (with on board Codesys) and getting Japanese characters. Did I miss a setting or does the ASCII object work differently on different units?

Below is a screenshot of the setting for a popup title bar as an ASCII string. Running this via cMT Viewer gives me Japanese characters for the title bar and a few other spots on this popup using the units (entered in Codesys)

Hi @JDControlsLLC ,

Thank you for your question! Could you try changing the encoding from Unicode to UTF-8 to see whether this corrects the issue?

That does work but why did it work as Unicode on the other model? In both instances I’m using the on-board Codesys.

Hi @JDControlsLLC ,

There are a couple factors that can affect how the string is interpreted. One reason is the option selected under “IEC-61131 STRING type select” when importing the CODESYS tags in EB Pro.


Here is a forum post that goes into more detail on this option: link.

Another possibility is the data type used in CODESYS. If the STRING data type is used instead of WSTRING, the STRING data is represented as two characters per word when mapped to the HMI. If those bytes are then interpreted as UTF-16 Unicode, the two characters can be interpreted together as a single Unicode character, which may result in characters from Japanese or other Unicode character ranges being displayed.

Oh ok that was it. Just needed to change to 1-char per word. I knew I was forgetting some setting and just couldn’t remember what it is. Thanks!