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

I had this error #540

Open
Ahmetereni opened this issue Oct 16, 2023 · 0 comments
Open

I had this error #540

Ahmetereni opened this issue Oct 16, 2023 · 0 comments

Comments

@Ahmetereni
Copy link

Traceback (most recent call last):
File "C:\Users\kralAhmet\Desktop\university-domains-list-master\filter.py", line 84, in
main()
File "C:\Users\kralAhmet\Desktop\university-domains-list-master\filter.py", line 71, in main
src = json.load(src_file)
File "C:\Users\kralAhmet\anaconda3\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\Users\kralAhmet\anaconda3\lib\encodings\cp1254.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 341609: character maps to

When i do this it seems like ok:

with open("./world_universities_and_domains.json",encoding="utf8") as src_file
with open("./filtered_world_universities_and_domains.json", "w",encoding="utf8") as dest_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

1 participant