Open karnash opened 8 years ago
Do you get an error message?
when i send this values for AreOfUse i get that error http://prntscr.com/cw8i3u
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.
@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));
my host is not support Composer how can i use without Composer ? Thanks alot
2016-11-28 19:58 GMT+07:00 DumpOfTheVar notifications@github.com:
@bretto36 https://github.com/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));
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rocket-internet-berlin/SellerCenterSDK-PHP/issues/11#issuecomment-263265055, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-Nx2w27EhQHq6S57J8RfvQ8xIhTr1oks5rCtANgaJpZM4KXif1 .
-- Thân ái Nguyễn Phú Thụy Phone: 0985.910.350 Email: nguyenphuthuybk@gmail.com Website: Himi.vn
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
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