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

Spanish chars #11

Open
karnash opened this issue Oct 14, 2016 · 6 comments
Open

Spanish chars #11

karnash opened this issue Oct 14, 2016 · 6 comments

Comments

@karnash
Copy link

karnash commented Oct 14, 2016

Hi there.. i retrieve the category attributes more specificly the AreaOfUse but when i send f.i.
Baño or Jardín or any option with a tilde i can't achieve send that how i can solve that. please.
thk a lot

@bretto36
Copy link

Do you get an error message?

@karnash
Copy link
Author

karnash commented Oct 19, 2016

when i send this values for AreOfUse i get that error
http://prntscr.com/cw8i3u

@bretto36
Copy link

It looks like it's doing htmlentities( twice on the code.

Can you post your code where you are adding the values to the Request. If you are storing it in a database, you might have to call html_entity_decode() on the value before you send it.

@DumpOfTheVar
Copy link

@bretto36 I have similar problem with ® symbol in brand name. Method RocketLabs\SellerCenterSdk\Core\Request\OutputFormatAdapter\XmlOutputFormatAdapter::addToNode() has code:
dom_import_simplexml($node)->nodeValue = htmlentities($content);
The problem is that it convertes ® to ® wich is correct html entity but not correct xml entity. I found this solution:
dom_import_simplexml($node)->nodeValue = utf8_decode(htmlentities($content, ENT_XML1));

@nguyenphuthuybk
Copy link

nguyenphuthuybk commented Nov 28, 2016 via email

@gersonfs
Copy link

I have the same problem here. Every request with special characters give error E005: Invalid Request Format. This is caused by htmlentities that convert the special characters into invalid xml caracters.
I solved it creating a new OutputFormatClass without htmlentities

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

5 participants