myopener = MyOpener()
pagedata = myopener.open(pageurl2).read().decode('UTF-8')
print (pagedata)
I have the above code to read a webpage, but the print statement give the following error...
Python 3.5 - UnicodeEncodeError: 'charmap' codec can't encode character '\u2014' in position 256: character maps to <undefined>
How to fix it?