jspanda icon indicating copy to clipboard operation
jspanda copied to clipboard

Traceback (most recent call last):

Open hellofresh01 opened this issue 3 years ago • 1 comments

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

hellofresh01 avatar Aug 30 '21 09:08 hellofresh01

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:

xsuperbug avatar Sep 08 '21 08:09 xsuperbug