Merge pull request #1 from josemoralesp/master
Fix: Unicode error in the result
This commit is contained in:
commit
7a59b8a82a
@ -30,8 +30,10 @@ def main():
|
||||
->
|
||||
[{dest}] {text}
|
||||
[pron.] {pronunciation}
|
||||
""".strip().format(src=result.src, dest=result.dest, original=result.origin,
|
||||
text=result.text, pronunciation=result.pronunciation)
|
||||
""".strip().format(src=result.src, dest=result.dest, original=result.origin,
|
||||
text=result.text.encode('utf-8', 'ignore'),
|
||||
pronunciation=result.pronunciation.encode('utf-8',
|
||||
'ignore'))
|
||||
print(result)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user