mirror of
https://github.com/evilhero/mylar
synced 2024-12-24 00:32:47 +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):
|
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):
|
||||||
|
|
Loading…
Reference in a new issue