I am currently using python 2.7 and doing web scraping on a Chinese website.
How to convert unicode below into a string?
Simple str() function does not work and states UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-11: ordinal not in range(128)
Thanks in advance,
u'\n\xe4\xb8\xad\xe5\x9b\xbd\xe6\xb7\xb1\xe5\x9c\xb3\n'