In function CreateClassFromXMLString, there is an issue in lines:

  if string_encoding:
    tree = ElementTree.fromstring(xml_string.encode(string_encoding))
  else:
    if XML_STRING_ENCODING:
      tree =
ElementTree.fromstring(xml_string.encode(XML_STRING_ENCODING))
    else:
      tree = ElementTree.fromstring(xml_string)
  return _CreateClassFromElementTree(target_class, tree)


I've had several google calendar feeds barf reporting a
UnicodeDecodeError.  I tried adding 'ignore' and 'replace' to the
encode() however it didn't help.  In the mean time I'm just doing to
do a try/except.

-Virgil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to