From 259b4ca5661289b245c9b1a51c4ce4b363b774bc Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Sun, 29 Jun 2014 16:58:23 +0300 Subject: [PATCH] more changes --- file_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_list.py b/file_list.py index bf97c2c..bf2edcc 100755 --- a/file_list.py +++ b/file_list.py @@ -181,7 +181,7 @@ def get_folder_contents(db,path): files=[] db.execute("SELECT file FROM list where file LIKE ?",(path+'%',)) for row in db: - base=row[0].replace(path,'',1) + base=unicode(row[0],'UTf-8').replace(path,'',1) if base.find('/')==-1: files.append(base) return files