Skip to content

Commit

Permalink
Fix utf8 encoding error on translation
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 3, 2020
1 parent ebefd35 commit 821539e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Javinizer/translate.py
Expand Up @@ -4,4 +4,5 @@
translator = Translator()
translation = translator.translate(sys.argv[1], dest=sys.argv[2])

print(translation.text)
text = translation.text.encode('utf8')
sys.stdout.buffer.write(text)

0 comments on commit 821539e

Please sign in to comment.