MeshAddicts / meshinfo

Realtime web UI to run against a Meshtastic regional or private mesh network.
8 stars 1 forks source link

Unicode support #8

Open quimnut opened 1 month ago

quimnut commented 1 month ago

Hey, this is cool, thanks.

I have the desire for unicode but the arduino json currently does not support it. I was going a different path with a preprocessing solution of sorts.

Anyway i quickly knocked this up from what I've found and thought I'd share.

https://gist.github.com/quimnut/c5ae707c627ed5434b300f6e8a40ccf7

kevinelliott commented 4 weeks ago

Hey! You're welcome. So that's interesting and very helpful. Let me take a look and see about implementing! (If you feel up to it, would take a PR too).

kevinelliott commented 6 hours ago

Waiting for https://github.com/meshtastic/firmware/issues/3562 to be resolved.

My suspicion is that https://github.com/meshtastic/firmware/blob/master/src/mqtt/JSONValue.cpp#L854-L863 has something not quite right, since it is sending \u0000 instead of the specific unicode value to MQTT JSON.