I have the following string:
word = u\'Buffalo,\\xa0IL\\xa060625\'
I don\'t want the \"\\xa0\" in there. How can I get rid of it? The st
You can easily use unicodedata to get rid of all of \x... characters.
unicodedata
\x...
from unicodedata import normalize normalize('NFKD', word) >>> 'Buffalo, IL 60625'