We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to Reproduce
echo -n '"DATA"' | mosquitto_pub -s -r -t myTopic
mosquitto_sub -t "myTopic/#" -F "%j" -W 1
Expected Output:
{ "tst": 1554139867, "topic": "myTopic", "qos": 0, "retain": 1, "payloadlen": 6, "payload": "\"DATA\"" }
Actual Output:
{ "tst": 1554139867, "topic": "myTopic", "qos": 0, "retain": 1, "payloadlen": 6, "payload": "\u0034DATA\u0034" }
When I decode the actual output's payload using jq I get an error. When I try to unescape it (using a few different tools) I get "4DATA4".
"4DATA4"
The text was updated successfully, but these errors were encountered:
Fix mosquitto_sub encoding of special characters with %j format.
cba3380
Thanks to Ben Barbour. Closes #1220.
Thanks very much, this was a silly mistake. It will be in 1.6 shortly.
Sorry, something went wrong.
No branches or pull requests
Steps to Reproduce
echo -n '"DATA"' | mosquitto_pub -s -r -t myTopic
mosquitto_sub -t "myTopic/#" -F "%j" -W 1
Expected Output:
Actual Output:
When I decode the actual output's payload using jq I get an error. When I try to unescape it (using a few different tools) I get
"4DATA4"
.The text was updated successfully, but these errors were encountered: