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

UnicodeDecodeError error on Windows when dealing with UTF-8 characters #15

Open
acabarbaye opened this issue Mar 30, 2020 · 2 comments
Open

Comments

@acabarbaye
Copy link

acabarbaye commented Mar 30, 2020

When running flake8-copyright on Windows on files which contain unicode characters, I get the following error:
File "..\lib\site-packages\flake8_copyright.py", line 86, in run top_of_file = open(self.filename).read(toread) File "..\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 0x8d in position 5141: character maps to <undefined>
@maximest-pierre

@maximest-pierre
Copy link
Contributor

I don't work here anymore but @pierreduchemin should be your best bet for getting this issue or PR looked at.

@jieru-hu
Copy link

jieru-hu commented Nov 5, 2020

@pierreduchemin would it be possible to have this fixed soon? Thanks!

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

3 participants