From: Ɓukasz Rekucki Date: Mon, 28 Sep 2009 14:36:59 +0000 (+0200) Subject: Test fix. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/07539e8aca073150d034525fb67183a57a388286?hp=-c Test fix. --- 07539e8aca073150d034525fb67183a57a388286 diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index 7db7b795..5696cc95 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -276,7 +276,7 @@ class DocumentTextHandler(BaseHandler): # 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