logo       

XML Unicode Error: msg#00233

org.google.api.calendar

Subject: XML Unicode Error


Hi there, I pull back a query and I'm simply trying to encode the XML
data returned in UTF-8 which it already should be in and Python throws
an error. Could this be a bug in google's data?

Details (Hope posting doesn't lose encoding)
Code:
data = data.encode("utf-8")

Error: (position 370 ends up being the enye in my name or close to it)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
370: ordinal not in range(128)

Partial XML (data)
<?xml version='1.0' encoding='UTF-8'?><feed
xmlns='http://www.w3.org/2005/Atom'
xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'
xmlns:gd='http://schemas.google.com/g/2005'
xmlns:gCal='http://schemas.google.com/gCal/2005'><id>http://www.google.com/calendar/feeds/default/private/full</id><updated>2006-09-27T04:28:21.000Z</updated><title
type='text'>Gregory Piñero</title><subtitle type='text'>Includes old
Outlook stuff</subtitle><link

...




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise