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

Traceback (most recent call last): #1

Open
hellofresh01 opened this issue Aug 30, 2021 · 1 comment
Open

Traceback (most recent call last): #1

hellofresh01 opened this issue Aug 30, 2021 · 1 comment

Comments

@hellofresh01
Copy link

I am getting a error on running
λ python jspanda.py
Traceback (most recent call last):
File "C:\Users\Yaseen\Downloads\cmder\jspanda\jspanda.py", line 24, in
testsite_array = my_file.readlines()
File "C:\Users\Yaseen\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 484: character maps to

@xsuperbug
Copy link
Contributor

I tried only for python3.7.x version. When I take a look, it can be solved as follows.

with open('url.txt',encoding="utf8") as my_file:
with open('url.txt',errors="ignore") as my_file:

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