Skip to content

Japanese Text #588

@ryan-jeffrey

Description

@ryan-jeffrey

When using the adapter I get a lockup then pushing japanese text. The text is "ストロークエンド軸あり", the whole line I'm sending is "2026-01-07T22:32:50.8567651Z|systemCondition|FAULT|1111|||ストロークエンド軸あり".

While experimenting with the adapter I changed all the ASCIIEncoding instances to UTF8Encoding instances. I included the relevant agent output files:

ascii-adapter-output.txt
utf8-adapter-output.txt
mtconnectoutput.txt

The difference is with the following lines:

For the UTF8Encoding version I get this returned:

<Fault dataItemId="systemCondition" timestamp="2026-01-07T23:16:17.1481955Z" sequence="80" nativeCode="1111" type="SYSTEM">&#xFF7D;&#xFF84;&#xFF9B;&#xFF70;&#xFF78;&#xFF74;&#xFF9D;&#xFF84;&#xFF9E;&#x8EF8;&#x3042;&#x308A;</Fault> , those escaped unicode characters are the correct characters for the text I passed in. The issue is that the adapter seems to lock up after sending this, but maybe that's an issue with the adapter?

For the unaltered agent I get this:

<Fault dataItemId="systemCondition" timestamp="2026-01-07T23:26:19.8203954Z" sequence="80" nativeCode="1111" type="SYSTEM">????????????</Fault>
But the adapter does not lock up.

I also included the telnet output for the adapter when run with the UTF8 encodings just in case that's useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions