1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-23 16:22:45 +00:00

Another Unicode Fix

This commit is contained in:
LordJay23 2017-12-06 21:02:27 -05:00 committed by evilhero
parent 745b515b6f
commit 5ff4c200d8

View file

@ -99,9 +99,9 @@ class OPDS(object):
def _uni(self, instr):
outstr = ""
try:
outstr = unicode(instr, "ascii")
except UnicodeError:
outstr = unicode(instr, "utf-8")
except UnicodeError:
return instr
return outstr
def _dic_from_query(self, query):