RedditRefresh icon indicating copy to clipboard operation
RedditRefresh copied to clipboard

UnicodeEncodeError: 'charmap' codec can't encode characters

Open bjornmp opened this issue 1 year ago • 0 comments

https://github.com/karan51ngh/RedditRefresh/blob/de09d6dec83f218d280014b11a4efdb8e9477304/delete.py#L20

I suggest adding UTF-8. It crashed for me with the error mentioned in the title when reaching certain comments in non-english language.

file = open("LOGS.md", "a+", encoding="utf-8")

Otherwise it works great. Thanks.

bjornmp avatar Apr 03 '24 11:04 bjornmp