1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-24 00:32:47 +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): def _uni(self, instr):
outstr = "" outstr = ""
try: try:
outstr = unicode(instr, "ascii")
except UnicodeError:
outstr = unicode(instr, "utf-8") outstr = unicode(instr, "utf-8")
except UnicodeError:
return instr
return outstr return outstr
def _dic_from_query(self, query): def _dic_from_query(self, query):