Unable to use certain symbols in MQTT topics with emonCMS mqtt_input

Escaping a character doesn’t help. The back slash is like any other ASCII character and is part of the topic key name.

If I send this:

mosquitto_pub -u ‘emonpi’ -P ‘emonpimqtt2016’ -t “emon/ecobee/Lil'bee” -m ‘1’

And I monitor with this:

mosquitto_sub -v -u ‘emonpi’ -P ‘emonpimqtt2016’ -t ‘emon/ecobee/#’
emon/ecobee/Lil'bee 1
emon/ecobee/Lil'bee 1
emon/ecobee/Lil'bee 1

But the Inputs webpage won’t accept the single quote. Or the back slash.

 

EDIT: I wonder if the above issue is related to this thread: