From 07539e8aca073150d034525fb67183a57a388286 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Mon, 28 Sep 2009 16:36:59 +0200 Subject: [PATCH 1/1] Test fix. --- apps/api/handlers/library_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1