Source Code:
(back to article)
text = u"Hello,\xa0world!" # the non-breaking space (U+00A0) is causing the error try: text.encode('ascii') except Exception as e: print(e)
Result:
Report an issue