[FIX] Fix Unicode error in the result
This commit is contained in:
parent
4da5f2619f
commit
ee05c8a03e
@ -30,8 +30,10 @@ def main():
|
|||||||
->
|
->
|
||||||
[{dest}] {text}
|
[{dest}] {text}
|
||||||
[pron.] {pronunciation}
|
[pron.] {pronunciation}
|
||||||
""".strip().format(src=result.src, dest=result.dest, original=result.origin,
|
""".strip().format(src=result.src, dest=result.dest, original=result.origin,
|
||||||
text=result.text, pronunciation=result.pronunciation)
|
text=result.text.encode('utf-8', 'ignore'),
|
||||||
|
pronunciation=result.pronunciation.encode('utf-8',
|
||||||
|
'ignore'))
|
||||||
print(result)
|
print(result)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user