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

UnicodeEncodeError: 'charmap' codec can't encode character '\u2764' in position 129: character maps to <undefined> #5

Open
shakeyourbunny opened this issue Jul 12, 2020 · 0 comments

Comments

@shakeyourbunny
Copy link

(Windows) Python 3.8, how invoked:
python schlabber.py -d d:\download\astrid astrid

Traceback (most recent call last):
File "schlabber.py", line 361, in
main(args.soups, args.dir, args.continue_from)
File "schlabber.py", line 353, in main
soup.backup(cont_from)
File "schlabber.py", line 345, in backup
self.process_posts(page)
File "schlabber.py", line 332, in process_posts
self.process_regular(post)
File "schlabber.py", line 288, in process_regular
rf.write(content)
File "C:\Users\pulaski\AppData\Local\Programs\Python\Python38\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2764' in position 129: character maps to

Seems that if a character is not in the default windows character set it falls flat on its face and cannot converted from unicode, should be taken care of.

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