Code:
def reqURL():
request = urllib.request.urlopen('https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat')
html = request.read()
html = html.decode(encoding="utf-8", errors="ignore")
print(html)
Error:
UnicodeEncodeError: 'charmap' codec can't encode character '\u017d' in position 468663: character maps to <undefined>
Question:
I read the docs and put errors="ignore"
in my code but it isn't working! Why?