[python] unicode strings

Subject: [python] unicode strings

Date: Mon, 5 Dec 2011 21:19:26 +0000

To: notmuch@notmuchmail.org

Cc:

From: Patrick Totzke


Unicode handling fixes for the bindings:
 - use __unicode__ for string representations, __str__ falls back to this
 - less complicated __str__ for Thread and Message
 - use errors='ignore' parameter for str.decode(). This should fix the
   "UnicodeDecodeError: 'utf8' codec can't decode byte 0xe8 in position"
   exceptions people were seing.

Best,
/p

Thread: