Goodreads Developers discussion

34 views
Strange encodings in book.show causing XML parsing errors

Comments Showing 1-5 of 5 (5 new)    post a comment »
dateDown arrow    newest »

message 1: by Mike (last edited Aug 25, 2010 12:22PM) (new)

Mike Daly (youdonotexist) | 5 comments Every once in a while, I'll pull down a book via Book.show and my parser will choke on certain characters in the review text.

I've seen problems in both the NSXMLParser and Firefox and Chrome's XML parsers. Looking at the XML, the review text is wrapped in a CDATA, so I'm not sure why it's running into these issues.

http://www.goodreads.com/book/isbn?is...

http://www.goodreads.com/book/isbn?is...

Thoughts?

Thanks,
Mike


message 2: by Michael (new)

Michael Economy (michaeleconomy) Likely, poor utf support on our end. :(

I'll have someone look into this.


message 3: by Casper (new)

Casper Gasper (caspergasper) | 32 comments This has come up before here:
http://www.goodreads.com/topic/show/3...

BTW, CDATA sections still have to valid UTF-8 (or whatever encoding your XML file is in).

Casper


message 4: by Adam (new)

Adam (jademason) | 66 comments The XML returned for the review at

http://www.goodreads.com/book/show/34053

Also has an encoding error in the body of the review.


message 5: by Michael (new)

Michael Economy (michaeleconomy) It's a bug in rails. We've been promised it's fixed in the new version 3.0. So we might get this fixed for free. I hope!


back to top