-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Bug]: emojis sent via JSON messages to the public broker are lost #5045
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Category
Other
Hardware
Heltec V3
Firmware Version
v2.5.5.e182ae7
Description
This might not be the proper repository to file an issue against. I was unable to find a better one.
Nodeinfo JSON messages sent to a public MQTT broker are somewhat broken: their longname fields have their emojis replaced with \u0000.
Apparently, the public MQTT broker has issues with emojis (not sure which codepoints in particular -- perhaps those outside of BMP?). My reproducible example using mosquitto_sub and mosquitto_pub:
// publisher
$ mosquitto_pub -t "msh/test" -h mqtt.meshtastic.org -u meshdev -P large4cats -i test2 -m "hi"
$ mosquitto_pub -t "msh/test" -h mqtt.meshtastic.org -u meshdev -P large4cats -i test2 -m "hi 💩"
// subscriber
$ mosquitto_sub -t "msh/test" -h mqtt.meshtastic.org -u meshdev -P large4cats -i test
hi
Note the second missing message. Now compare with my own mosquitto server:
// publisher
$ mosquitto_pub -t "msh/test" -h mqtt.home -i test2 -m "hi 💩"
// subscriber
$ mosquitto_sub -t "msh/test" -h mqtt.home -i test
hi 💩
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working