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: 'utf-8' codec can't decode byte #1

Open
blu3r4y opened this issue Aug 28, 2021 · 0 comments
Open

UnicodeDecodeError: 'utf-8' codec can't decode byte #1

blu3r4y opened this issue Aug 28, 2021 · 0 comments

Comments

@blu3r4y
Copy link
Owner

blu3r4y commented Aug 28, 2021

When used on files that contain non-ASCII characters, blinkcheck immediately fails

Traceback (most recent call last):
  File "C:\Users\mario\AppData\Local\pypoetry\Cache\virtualenvs\blinkcheck-OQqBevYi-py3.9\Scripts\blinkcheck", line 5, in <module>
    main()
  File "\blinkcheck\blinkcheck\console.py", line 190, in main
    lc.check()
  File "\blinkcheck\blinkcheck\console.py", line 78, in check
    all_urls = self._get_all_urls()
  File "\blinkcheck\blinkcheck\console.py", line 102, in _get_all_urls
    urls = list(self._iter_urls(file))
  File "\blinkcheck\blinkcheck\console.py", line 121, in _iter_urls
    for line in f:
  File "C:\Users\mario\AppData\Local\Programs\Python\Python39\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 3: invalid start byte
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