I am building a little website crawler and I've encountered some problems with it. The first one would be Unicode characters in the url
Let's say I have the following url : http://putlocker.is/actor/Juan_Fern%C3%A1ndez
My code is :
try:
connection = urllib.urlopen(self.__link)
get = connection.read().decode('utf8')
except:
if UnicodeDecodeError:
print("UnicodeDecodeError !!!")
I'm talkink about the original link , not about the encoded one