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

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 287: ordinal not in range(128) #49

Open
eskuai opened this issue Jul 2, 2018 · 0 comments

Comments

@eskuai
Copy link

eskuai commented Jul 2, 2018

Hi,

Using windows 10, docker 18.03-1, default windows charset
docker exec -it 48a842ec1d8eed260fa4bb8a6b1e91e6964ceba72dbe6f0e2730d29d3661563e /bin/sh -c
'aws sns --endpoint-url http://localhost:9911 create-topic --name test1'

==============================================
Traceback (most recent call last):
File "/usr/bin/aws", line 27, in
sys.exit(main())
File "/usr/bin/aws", line 23, in main
return awscli.clidriver.main()
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 59, in main
rc = driver.main()
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 233, in main
write_exception(e, outfile=get_stderr_text_writer())
File "/usr/lib/python2.7/site-packages/awscli/utils.py", line 194, in write_exception
outfile.write(six.text_type(ex))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 287: ordinal not in range(128)

how change python ascii charset or windows client charset ???

wins:> chcp 65001
default charset utf-8

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