StevenBlack/hosts

updateHostsFile.py fails to download from KADhosts under Python 2.7

Closed this issue · 5 comments

Seeing this under Python 2.7.

 Error in updating source:  https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt

I suspect that write_data is failing because of newly added cyrillic characters in commit 2bb7c27.

Unable to use it.Not working.

Gonna try to fix it once I have time but if someone else have time to write a PR:

Here's in my opinion the best way to achieve the string decoding/encoding: https://stackoverflow.com/a/15918519/5308363

Thanks Tomasz @FadeMind.

We still need to fix the encoding issue on Python 2.7...

You can also close this @StevenBlack 👍