eclipse-paho / paho.mqtt-spy

mqtt-spy is an open source desktop & command line utility intended to help you with monitoring activity on MQTT topics
Other
620 stars 145 forks source link

UNICODE Replacement character when saving a message as script #61

Open MarthaZeppelin opened 6 years ago

MarthaZeppelin commented 6 years ago

I have a Hex payload as follows: "0a0000000d000c01e184" Using Save current messages as script yields "mqttspy.publish("mytopic", "\n\u0000\u0000\u0000\r\u0000\f\u0001\uFFFD", 2, true);"

The final "\uFFFD" isn't a correct representation of the original "e184", Seems there's something going wrong, "\uFFFD" is the UNICODE Replacement character.