-
Notifications
You must be signed in to change notification settings - Fork 59
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
Translation doesn't appear #1
Comments
I am using Python 3.7 on Windows 10, there is no problem with the translation of Goldendict, which one is the target language you are using. |
Hebrew. I'm using Windows 7 SP1, and the latest Windows build of the Goldendict beta (1.5.0-RC2-311-g15062f7). |
You can replace the two gbk with cp1255 in line 37 of googletranslate.py.
|
Ahh, it works! Thank you! I also have a different bug report (or feature request, depending on how you look at it), but I'll open a separate issue. |
Hi!
I can't seem to get this to work, either in Goldendict or just from the command line.
I have Python 3.7 installed, and have installed requests.
In Goldendict, I get the following error:
Query error: The program has returned exit code 1. Traceback (most recent call last): File "D:\gt\googletranslate.py", line 43, in gtrans() File "D:\gt\googletranslate.py", line 37, in gtrans print(result.encode('gbk', 'ignore').decode('gbk')) File "D:\Python\Python37-32\lib\encodings\cp1255.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 33-34: character maps to
The text was updated successfully, but these errors were encountered: