From dc3368dad09fa4acb4cc480845f0ff3edc126483 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Fri, 2 Oct 2009 11:20:26 +0200 Subject: [PATCH] Fix --- apps/api/handlers/library_handlers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index 84881cee..1cdbe53a 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -255,7 +255,9 @@ class DocumentGalleryHandler(BaseHandler): gallery = {'name': assoc.name, 'pages': []} - for file in sorted(os.listdir(dirpath)): + for file in sorted( os.listdir(dirpath) ): + file = file.encode('utf-8') + log.info(file) name, ext = os.path.splitext(os.path.basename(file)) -- 2.20.1