Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apostrophes are printed as special caracters (FR) #79

Open
GDelevoye opened this issue Jul 4, 2021 · 0 comments
Open

Apostrophes are printed as special caracters (FR) #79

GDelevoye opened this issue Jul 4, 2021 · 0 comments

Comments

@GDelevoye
Copy link

Hello :)

First of all what a great module really !!! The default translator is awesome for basic usage (so is mine)
I just had one small disappointment about the apostrophes printed as special caracters when trying to translate in french

(gl) guillaume@A320MA:~$ translate-cli -t fr "That's his fault not mine"

Translation: C'est sa faute pas la mienne
-------------------------
Translated by: MyMemory

I thought this could have something to do with the terminal's encoding so I tried in pure python3/utf-8 and got the same result

>>> translator= Translator(to_lang="fr")
>>> translation = translator.translate("That's cool isn't it ?")
>>> print(translation)
C'est cool non ?

It's very surprising to me since even mandarin seems to print properly

I was using translate, version 3.5.0 on Ubuntu x86 LTS20 with python 3.7.1 (anaconda)

For now I can use a small hotfix (a simple ".replace("'","'") should do) but maybe it could be fixed idk ? :)

Thanks again for the good work however 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant