I have a html text : If I'm reading lots of articles
I am trying to replace '
and other such special characters into unicode '
. I did
rawtxt.encode('utf-8').encode('ascii','ignore')
, but it fails
Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2
encode
. See: chat.stackoverflow.com/rooms/10/conversation/…