mirror of
https://github.com/evilhero/mylar
synced 2024-12-23 08:12:41 +00:00
Another Unicode Fix
This commit is contained in:
parent
745b515b6f
commit
5ff4c200d8
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue