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

Trying to run the Google Colab notebook as is, getting inundated with an error #14

Open
TeaDrinkingHacker opened this issue Apr 18, 2023 · 2 comments

Comments

@TeaDrinkingHacker
Copy link

_/usr/lib/python3.9/encodings/ascii.py in decode(self, input, final)
24 class IncrementalDecoder(codecs.IncrementalDecoder):
25 def decode(self, input, final=False):
---> 26 return codecs.ascii_decode(input, self.errors)[0]
27
28 class StreamWriter(Codec,codecs.StreamWriter):

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 149: ordinal not in range(128)_

I've tried:

  • changing the input file to my own
  • resaving my own explicitly as utf-8 encoded
  • reading in my file as a df then saving back to TXT with encoding on
    None made a difference, please help.
@lucy3
Copy link

lucy3 commented Apr 24, 2023

Have you tried f = open(file_path, 'r+', encoding="utf-8")

@TeaDrinkingHacker
Copy link
Author

TeaDrinkingHacker commented Apr 24, 2023 via email

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

2 participants