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 with "И" letter #89

Open
Karpovich-alex opened this issue Sep 9, 2022 · 0 comments
Open

UnicodeDecodeError with "И" letter #89

Karpovich-alex opened this issue Sep 9, 2022 · 0 comments

Comments

@Karpovich-alex
Copy link

There is some trouble with "И" letter in comments or strings.
You can reproduce this error with code
print("И")
And you will get
" File "C:\ ...\venv\lib\site-packages\flake8_pytest.py", line 33, in run
noqa = _get_noqa_lines(file_to_check.readlines())
File "C:\ ...\Python\Python310\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 8: character maps to <undefined>" error.
But with letter "и" it goes well.

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