amelie13 Posted January 31, 2013 Share Posted January 31, 2013 (edited) Hi, I'm using the PSWebServiceLibrairy for Prestashop API. I've modified the code to add orders instead of customers. Listing is OK but when adding I got this error : HTTP XML response is not parsable : array ( 0 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 64, 'message' => 'Input is not proper UTF-8, indicate encoding ! Bytes: 0xE3 0xF7 0xB7 0x6D ', 'file' => '', 'line' => 733, )), 1 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 68, 'message' => 'PCDATA invalid Char value 3 ', 'file' => '', 'line' => 733, )), 2 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 68, 'column' => 76, 'message' => 'StartTag: invalid element name ', 'file' => '', 'line' => 733, )), 3 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 77, 'message' => 'PCDATA invalid Char value 30 ', 'file' => '', 'line' => 733, )), 4 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 78, 'message' => 'PCDATA invalid Char value 16 ', 'file' => '', 'line' => 733, )), 5 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '', 'line' => 9088, )), 6 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '', 'line' => 11746, )), 7 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '', 'line' => 14403, )), 8 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 33, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '', 'line' => 14980, )), ) What is wrong ? Thank you. Edited January 31, 2013 by amelie13 (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted February 1, 2013 Share Posted February 1, 2013 (edited) Seeing the first error, it seems a text encoding problem. It expects UTF-8. (Do you feed it plain ASCII, other languages?) You need to indicate (somehow, no XML knowledge myself) what encoding is used, and it expects UTF-8. My 2 cents, Pascal Edited February 1, 2013 by PascalVG (see edit history) Link to comment Share on other sites More sharing options...
amelie13 Posted February 1, 2013 Author Share Posted February 1, 2013 My database contains only UTF-8 encoded datas, that's why I don't really understand. Feeding might be UFT-8 encoded, no ? Link to comment Share on other sites More sharing options...
amelie13 Posted February 1, 2013 Author Share Posted February 1, 2013 I've fixed the first error. But the second and the others are always there. Link to comment Share on other sites More sharing options...
SamXIV Posted July 9, 2013 Share Posted July 9, 2013 Would be nice to explain how did you solve it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now