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

Xml for post data was invalid, Reference to undeclared entity 'Atilde' #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bumperbox
Copy link

When sending international characters this messages pops up "Xml for post data was invalid, Reference to undeclared entity 'Atilde'"

According to this Stackoverflow http://stackoverflow.com/questions/552957/, addChild() does not escape xml entities, whereas setting directly via $xml->$key does escape entities, removes the need to try and escape them ourselves first, as the current htmlentities() call doesn't do a good job of all xml entities

Also see this discussion
https://community.xero.com/developer/discussion/32311/

…post data was invalid, Reference to undeclared entity 'Atilde'", and according to this Stackoverflow http://stackoverflow.com/questions/552957/, addChild does not escape, whereas setting directly via $xml->$key does escape entities, removes the need to try and escape them ourselves first
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

Successfully merging this pull request may close these issues.

1 participant