1
0
Fork 0
mirror of https://github.com/koniu/recoll-webui.git synced 2025-10-06 03:50:09 +02:00

py: fix error when search folder utf-8

This commit is contained in:
koniu 2014-07-10 14:48:37 +01:00
parent f26a04e059
commit 15389e8f3b

View file

@ -150,7 +150,7 @@ def query_to_recoll_string(q):
if len(q['after']) > 0 or len(q['before']) > 0: if len(q['after']) > 0 or len(q['before']) > 0:
qs += " date:%s/%s" % (q['after'], q['before']) qs += " date:%s/%s" % (q['after'], q['before'])
if q['dir'] != '<all>': if q['dir'] != '<all>':
qs += " dir:\"%s\" " % q['dir'] qs += " dir:\"%s\" " % q['dir'].decode('utf-8')
return qs return qs
#}}} #}}}
#{{{ recoll_initsearch #{{{ recoll_initsearch