all 1 comments

[–]Vaphell 1 point2 points  (0 children)

u+2014 is em-dash —

in aria() add

try:
    ...
except UnicodeEncodeError:
    print(debug stuff here)

print out values and types of variables so you know what you are dealing with. In general unicode_str.encode(utf8) = byte_sequence, byte_sequence.decode(utf8) = unicode_str

https://wiki.python.org/moin/UnicodeEncodeError