Skip to content
New issue

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

NULL character in source #20

Open
iammichiel opened this issue Oct 3, 2016 · 1 comment
Open

NULL character in source #20

iammichiel opened this issue Oct 3, 2016 · 1 comment

Comments

@iammichiel
Copy link

iammichiel commented Oct 3, 2016

Hi,

When downloading latest messages using the API the parsing fails with the following error :

"Warning: simplexml_load_string(): Entity: line 1: parser error : xmlParseCharRef: invalid xmlChar value 0"

Indeed, dumping the XML file, reveals this :

Nón�

Any chance you can look into this? NULL chars are not allowed in XML documents. We cannot prevent users from sending them to our inbox. What could be a possible workaround?

PS : I have deleted the message manually so our import can run again.

@moretonb
Copy link
Contributor

moretonb commented Oct 3, 2016

Hi @iammichiel

Thank you for bringing this to our attention. We were actually looking into the issue already because it is related to what the API emits, not what the SDK can handle. As you mention these are illegal XML characters and we will have to come up with a strategy for them.

I'll keep you posted and close the issue when we have a solution released. Apologies for any inconvenience in the mean time.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants