# Node-red-contrib-azure-iot-hub - Quotes in data and unencrypted body

**URL:** <https://discourse.nodered.org/t/node-red-contrib-azure-iot-hub-quotes-in-data-and-unencrypted-body/20873>\
**Category:** General\
**Created:** [26 January 2020 16:51 UTC](https://discourse.nodered.org/t/node-red-contrib-azure-iot-hub-quotes-in-data-and-unencrypted-body/20873 "2020-01-26T16:51:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TePeBoxer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tepeboxer/32/15856_2.png) [@TePeBoxer](https://discourse.nodered.org/u/TePeBoxer)\
**Post date:** [26 January 2020 16:51 UTC](https://discourse.nodered.org/t/node-red-contrib-azure-iot-hub-quotes-in-data-and-unencrypted-body/20873/1 "2020-01-26T16:51:32Z")

</div>

Hi,

just getting used to Azure IoT Hub integration with Node-RED. Two questions around node-red-contrib-azure-iot-hub:

1. how can I get quoted texts into the data area? The example is not using them, without escape characters it won't work (the quotes would end the string), with escape characters these are carried forward into the IoT stream which messes up the JSON there...

2. the body is delivered as a Base64 encrypted string. A lot of tools can work with that, however if you want to simply use IoT Hub's custom endpoints (like a Storage Account for logging) you will always see the the encrypted string. Microsoft recommends to use something like (in C#) "// Set message body type and content encoding message.contentEncoding = "utf-8"; message.contentType = "application/json"" but I have no clue where to add that in the module

Thanks for any help,

Thomas

---

<div class="post-metadata">

**Author:** ![GerardMoyaTarradella](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerardmoyatarradella/32/73349_2.png) [@GerardMoyaTarradella](https://discourse.nodered.org/u/GerardMoyaTarradella)\
**Post date:** [28 December 2022 12:34 UTC](https://discourse.nodered.org/t/node-red-contrib-azure-iot-hub-quotes-in-data-and-unencrypted-body/20873/2 "2022-12-28T12:34:03Z")

</div>

I'm having the same issue. Did you solve it?

---

<div class="post-metadata">

**Author:** ![tepebox](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tepebox/32/73617_2.png) [@tepebox](https://discourse.nodered.org/u/tepebox)\
**Post date:** [2 January 2023 09:02 UTC](https://discourse.nodered.org/t/node-red-contrib-azure-iot-hub-quotes-in-data-and-unencrypted-body/20873/3 "2023-01-02T09:02:53Z")

</div>

Hi,

sorry, didn't solve that and moved to a different solution...

Best Regards,

Thomas
