Test fix.
authorŁukasz Rekucki <lrekucki@gmail.com>
Mon, 28 Sep 2009 14:36:59 +0000 (16:36 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Mon, 28 Sep 2009 14:36:59 +0000 (16:36 +0200)
apps/api/handlers/library_handlers.py

index 7db7b79..5696cc9 100644 (file)
@@ -276,7 +276,7 @@ class DocumentTextHandler(BaseHandler):
 
                 # now that the parts are ok, write xml
                 f = lib._fileopen(resolve('xml'), 'w+')
 
                 # now that the parts are ok, write xml
                 f = lib._fileopen(resolve('xml'), 'w+')
-                f.write(data)
+                f.write(data.encode('utf-8'))
                 f.close()
 
             ndoc = None
                 f.close()
 
             ndoc = None