fixing unicode stuff

This commit is contained in:
q
2014-08-15 16:19:58 +03:00
parent 567461dd1d
commit 7692182cfb

View File

@@ -213,7 +213,7 @@ def get_folder_contents(db,path):
files=[] files=[]
db.execute("SELECT file FROM list where file LIKE ?",(path+'%',)) db.execute("SELECT file FROM list where file LIKE ?",(path+'%',))
for row in db: for row in db:
base=unicode(row[0],'UTf-8').replace(path,'',1) base=row[0].decode('utf-8').replace(path,'',1)
if base.find('/')==-1: if base.find('/')==-1:
files.append(base) files.append(base)
return files return files