cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trading API error - org.xml.sax.SAXParseException

I am using VerifyAddItem

I get a parse error when I have an Umlaut (ä) in the Description XML.  If i replace it with an (a) , everything works fine.

Entire description as follows:

Antique, German historical work elaborating on the history of the Romans. The author, Oskar Jäger, was the Director of the Royal Friedrich-Wilhelms-Gymnasium in Köln and an honorary professor at the University of Bonn. This tenth edition includes 183 illustrations, 2 chromolithographs, and 2 maps, indicating its extensive use as an educational resource.

ANY IDEAS?

Message 1 of 4
latest reply
1 BEST ANSWER

Accepted Solutions

Trading API error - org.xml.sax.SAXParseException

@breun57 

Bay's File Exchange (based on Excel and the Trading API) had the same issue.  A problem arose when the file encoding was set to UTF-8, but worked fine when set to ISO-8859-1 or CP1252. You might fiddle with the encoding of the uploaded document.

 

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.

View Best Answer in original post

Message 2 of 4
latest reply
3 REPLIES 3

Trading API error - org.xml.sax.SAXParseException

@breun57 

Bay's File Exchange (based on Excel and the Trading API) had the same issue.  A problem arose when the file encoding was set to UTF-8, but worked fine when set to ISO-8859-1 or CP1252. You might fiddle with the encoding of the uploaded document.

 

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 4
latest reply

Trading API error - org.xml.sax.SAXParseException

Thanks for the feedback

Looking closer, As an isolated failure test case, i only need to replace the umlaut-a  in Jäger of the string below with a regular a and it works fine.  I coding looks like valid multibyte  alright.

J\xc3\xa4ger
<Description>Antique, German historical work elaborating on the history of the Romans. The author, Oskar Jäger, was the Director of the Royal Friedrich-Wilhelms-Gymnasium in Köln and an honorary professor at the University of Bonn. This tenth edition includes 183 illustrations, 2 chromolithographs, and 2 maps, indicating its extensive use as an educational resource.</Description>

 

Message 3 of 4
latest reply

Trading API error - org.xml.sax.SAXParseException

Yes ISO-8859-1 is the answer.  Python only allows it as byte-strings.  Any string operation converts it back to UTF-8. The eBay Trading API doesn't like my German double byte characters.

THANKS A BUNCH FOR YOUR HELP!

Message 4 of 4
latest reply