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

Feed XML requires UTF-8 Encoding #4

Open
mfrederico opened this issue Apr 10, 2020 · 3 comments
Open

Feed XML requires UTF-8 Encoding #4

mfrederico opened this issue Apr 10, 2020 · 3 comments

Comments

@mfrederico
Copy link

Kept getting my feed submissions cancelled and spent the past 4 days troubleshooting everything.
It came down to changing my xml header to be:

<?xml version="1.0" encoding="UTF-8"?>

Made all the difference in the world

@mfrederico
Copy link
Author

mfrederico commented Apr 10, 2020

In arrayToXml:
return ArrayToXml::convert($array, $customRoot,true,'UTF-8');

@stefnats
Copy link

Is this the actual file that you submit?
If so, this lib / mws in general is just the way to transport the file. The actual data doesn't get verified with this api & lib.

@mfrederico
Copy link
Author

Is this the actual file that you submit?
If so, this lib / mws in general is just the way to transport the file. The actual data doesn't get verified with this api & lib.

No, I'm sending XML of feed data. Amazon required my feed data to be UTF-8 formatted, but this library defaults it to ISO-8859-1 which was causing my feeds to be cancelled for days. The fix to the ArrayToXml::convert line made all the difference in my feeds going through.

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