-
Notifications
You must be signed in to change notification settings - Fork 720
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
Run Python script as Programs
dictionary return about UnicodeEncodeError
.
#1678
Comments
Your version of Python seems to be set up to automatically convert things to
However, I don't see how that could be GoldenDict's fault - there's just no way GD would ever set |
I got the same output in D:\home>ety.exe -r -t aerodynamically >test_redir
Traceback (most recent call last):
File "\\?\C:\Users\scillidan\scoop\persist\python39\Scripts\ety-script.py", line 33, in <module>
sys.exit(load_entry_point('ety', 'console_scripts', 'ety')())
File "d:\cacher\goldendict_ety-python\ety\cli.py", line 42, in cli
print(output.strip())
UnicodeEncodeError: 'gbk' codec can't encode character '\u1f00' in position 112: illegal multibyte sequence I checked my environment, and I didn't seem to set any environment values except for where I should test it on |
It's not a GoldenDict's problem, which prevents me from wasting more time in the wrong direction. |
OS: Windows 10
Version: GoldenDict 1.5.0 (Protable)
I add ety-python into
Programs
of GoldenDict as dictionary. It's data come from.tsv
of http://etym.org/.The command line is
ety -r -t "%GDWORD%"
, it return some errors when I search some word likedapple
,aerodynamically
:I try it in
cmd.exe
,ety -r -t aerodynamically
return:I have similar problems when I used other python cli liked etym-cli in GoldenDict🤔. And node cli thes work well.
The text was updated successfully, but these errors were encountered: