I am working in Python 2.7, and trying Chinese in string but it is not accepting at all.
I tried .encode('utf-8') as explained in ,
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128)
and adding below line in the beginning of file but none worked.
# -- coding: utf-8 --
To check I opened console in Pycharm and entered below string. You may check the output below. I don't understand this behaviour.