<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,7 +15,7 @@ class builder:
     return element(name, self)
   def __getitem__(self, name):
     return element(name, self)
-  def __str__(self):
+  def __unicode__(self):
     return self.document.getvalue()
   def write(self, line):
     self.document.write('%s%s' % ((self.indentation * ' '), line))</diff>
      <filename>xmlbuilder.py</filename>
    </modified>
    <modified>
      <diff>@@ -41,7 +41,7 @@ class XNQueryHandler(webapp.RequestHandler):
       kind = xnquery.resources.content.selectors.type.rightside
     self.response.headers['Content-Type'] = 'application/atom+xml'
     atom = AtomBuilder(kind, objects)
-    self.response.out.write(str(atom))
+    self.response.out.write(unicode(atom))
 
 class AtomBuilder:
   FEED_NS = {
@@ -72,7 +72,7 @@ class AtomBuilder:
             if type(value) == list:
               xml[&quot;xn:%s&quot; % property](' '.join(value))
             else:
-              xml[&quot;xn:%s&quot; % property](str(value).replace('&lt;','&amp;lt;'))
+              xml[&quot;xn:%s&quot; % property](unicode(value).replace('&lt;','&amp;lt;'))
     self.xml = xml
   def process_author(self, value):
     with self.xml.author:
@@ -94,7 +94,7 @@ class AtomBuilder:
     for property_name in used_properties.keys():
       del properties[property_name]
   def __str__(self):
-    return str(self.xml)
+    return unicode(self.xml)
 
 def main():
   application = webapp.WSGIApplication([('/xn/(.*)/(.*)/(.*)', XNQueryHandler)], debug=True)</diff>
      <filename>xn.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>659afc964510fff98e2ea2aaea316df21ddb98f3</id>
    </parent>
  </parents>
  <author>
    <name>Fabricio Zuardi</name>
    <email>fabricio@gmail.com</email>
  </author>
  <url>http://github.com/fczuardi/gae-rest/commit/4488ccbec233f09f066e09d44a8aa7a2b6ddb469</url>
  <id>4488ccbec233f09f066e09d44a8aa7a2b6ddb469</id>
  <committed-date>2008-07-07T12:13:24-07:00</committed-date>
  <authored-date>2008-07-07T12:13:24-07:00</authored-date>
  <message>The feed was throwing error when a value have unicode characteres</message>
  <tree>e580ac001ea5b43d13def4c971275b6137a8dc6a</tree>
  <committer>
    <name>Fabricio Zuardi</name>
    <email>fabricio@gmail.com</email>
  </committer>
</commit>
