MQTT JSON content includes \u0000,

I sent a message in Chinese, but why does the payload of the topic msh/2/json/LongFast/! received using mqtt.fx include \u0000

1 Like

Russian letters are also displayed

Is the problem solved?

It seems that this question is very difficult.

JSON is not a complete solution, use protobufs for full data.

The protobufs are in garbled codes, making it difficult to handle the Chinese content contained within.

They are encrypted, so you will need to decrypt them.

Settings-> Module Config-> MQTT config-> set mqtt server adress. Verify on this page that the Encryption Enabled option is off

I think the problem should lie in the JSONValue.cpp file, specifically with the conversion from unicode to utf8 encoding format.