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

Unicode Decode Error #72

Open
alex742 opened this issue Oct 10, 2018 · 2 comments
Open

Unicode Decode Error #72

alex742 opened this issue Oct 10, 2018 · 2 comments

Comments

@alex742
Copy link

alex742 commented Oct 10, 2018

I haven't changed anything, all I did is download and set up the code.

I checked the char and it seemed to be a whitespace so I replaced it with " ", but then I just got an error in another position. This time the char was a "3".

Any idea?

image

@pipipuppypaul
Copy link

I haven't changed anything, all I did is download and set up the code.

I checked the char and it seemed to be a whitespace so I replaced it with " ", but then I just got an error in another position. This time the char was a "3".

Any idea?

image

you may add encoding='utf-8' when you read a file.

@guillaumegenthial
Copy link
Owner

For any future reader experiencing environment issues, the fix is always the same

  1. switch to a unix environment (use a docker container if you have windows and use an interactive session)
  2. use python 3 (python 3 default encoding is 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

3 participants