Fix
authorŁukasz Rekucki <lrekucki@gmail.com>
Fri, 2 Oct 2009 09:20:26 +0000 (11:20 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Fri, 2 Oct 2009 09:20:26 +0000 (11:20 +0200)
apps/api/handlers/library_handlers.py

index 84881ce..1cdbe53 100644 (file)
@@ -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))