Skip to content

use ASCII only characters in scripts #79

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

Merged
merged 1 commit into from
Jan 15, 2018
Merged

Conversation

larsxschneider
Copy link
Collaborator

Some Python version apparently cannot handle Unicode characters which
causes the following error:

    File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
       return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 881: ordinal not in range(128)

Fix this by using ASCII only characters.

Thanks to @rajivmucheli for patiently debugging the issue with me 😄

Some Python version apparently cannot handle Unicode characters which
causes the following error:

    File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
       return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 881: ordinal not in range(128)

Fix this by using ASCII only characters.
Copy link
Contributor

@pluehne pluehne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sorry for having introduced this non-ASCII character 😅.

Just out of curiosity, which Python version is it that won’t handle Unicode characters?

@rajivmucheli
Copy link

rajivmucheli commented Jan 12, 2018 via email

@pluehne
Copy link
Contributor

pluehne commented Jan 12, 2018

@rajivmucheli: Thanks for letting me know!

@larsxschneider
Copy link
Collaborator Author

I have v.3.5.2, too, ... I guess his Python is compiled in a different way or something.

@larsxschneider larsxschneider merged commit aef52c5 into master Jan 15, 2018
@larsxschneider larsxschneider deleted the lars/fix-char branch January 15, 2018 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants