# Extra characters with httpGet

**URL:** <https://forum.inductiveautomation.com/t/extra-characters-with-httpget/87132>\
**Category:** Ignition\
**Created:** [March 11, 2024, 3:00pm UTC](https://forum.inductiveautomation.com/t/extra-characters-with-httpget/87132 "2024-03-11T15:00:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [March 11, 2024, 3:00pm UTC](https://forum.inductiveautomation.com/t/extra-characters-with-httpget/87132/1 "2024-03-11T15:00:02Z")

</div>

Hey all,

I'm trying to parse an html table from a machine to get some data from it, the html page loads correctly on a web browser so I didn't think it would be an issue, but when I try and get the data from the system.net.httpGet() function there is a \x00 before every character of the html code.

I tried it with [www.google.com](http://www.google.com) and it returns the html correctly, is this just an old version of html? Is there a way to scrub out all of the \x00 characters?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/0306a1dee905ab2b2c31f0079f6fd3e114273088.png)

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [March 11, 2024, 3:03pm UTC](https://forum.inductiveautomation.com/t/extra-characters-with-httpget/87132/2 "2024-03-11T15:03:21Z")

</div>

Nevermind, I removed them with .replace('\x00', '')

and that seemed to work fine.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 11, 2024, 3:07pm UTC](https://forum.inductiveautomation.com/t/extra-characters-with-httpget/87132/3 "2024-03-11T15:07:24Z")

</div>

Not exactly strictly related to your issue, but I'd strongly recommend avoiding the htttpGet/post/etc functions in favor of system.net.httpClient. It's faster, capable of actually returning things other than strings, has better content encoding and decoding built ins, and is generally a much better experience all around.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [March 11, 2024, 3:13pm UTC](https://forum.inductiveautomation.com/t/extra-characters-with-httpget/87132/4 "2024-03-11T15:13:53Z")

</div>

are you in control of the data that is being posted? because you should probably look into that instead of fixing it on the receiving end

this looks like an encoding issue (utf8 or utf 16)

im guessing is you are sending the data as utf 16 but read it as utf 8
