converting Twilio sms body to a string - encoding error for @ symbol
问题 I'm sending an email address to my python webapp by sms using Twilio. However, when I attempt to convert the sms body containing the email address I get an exception. <type 'exceptions.UnicodeEncodeError'>, UnicodeEncodeError('ascii', u'myemail\xa1gmail.com', 13, 14, 'ordinal not in range(128)'), <traceback object at 0x10cca5f8>) Traceback (most recent call last): File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 570, in dispatch return method(