You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the Amazon SimpleDB Developer Guide : "To ensure that you can read all the data you sent via REST, if a response contains invalid XML characters, Amazon SimpleDB automatically Base64-encodes the UTF-8 octets of the text. When a returned element is Base64-encoded, its encoding element is set to base64. The following example shows Base64-encoded results from a GetAttributes operation."
Base64-encoded are not decoded in _parse_attributes method.
So for fixing, in _parse_attributes of simpledb.py, I replace
value = attribute.find('{%s}Value' % self.ns).text
By
attValue = attribute.find('{%s}Value' % self.ns)
value = attValue.text
if len(attValue.attrib.keys()) != 0:
if attValue.attrib.has_key('encoding'):
value = value.decode(attValue.attrib.get("encoding"))
Activity
jhenot commentedon Feb 26, 2010
So for fixing, in _parse_attributes of simpledb.py, I replace
By