I\'m having troubles in encoding characters in utf-8. I\'m using Django, and I get this error when I tried to send an Android notification with non-plain text. I tried to find w
You're trying to encode / decode strings, not Unicode strings. The following statements do work:
u'ç'.encode('utf8') u'á'.encode('utf-8') unicode(u'ç') u'ç'.encode('utf-8','ignore')