Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3125E429E26 for ; Mon, 5 Dec 2011 13:19:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S8Z3Hk7ykOqM for ; Mon, 5 Dec 2011 13:19:36 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9EAA9429E25 for ; Mon, 5 Dec 2011 13:19:36 -0800 (PST) Received: by eekb57 with SMTP id b57so1080448eek.26 for ; Mon, 05 Dec 2011 13:19:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer; bh=zUDYwCz/knYpNTCcDp7OgVDaUC1kZiDX0YAQf7MQYLE=; b=hRdilu6EHzkFYKJZoweo47a+YIpe2TbkRoONPRRa1VD6vtXm6UGkTEdyWmbxu6NgUZ vyQJ3OPUU80Wsz8jA4a7wQ6JGDugM4b8Ic09Gjlex/G55ZVOUflW2+UH+qK/SAfQUGOO GYa25ho539r+IL+qaQ4hqq6f/aujiz8lE2tv8= Received: by 10.14.13.193 with SMTP id b41mr1435981eeb.42.1323119975199; Mon, 05 Dec 2011 13:19:35 -0800 (PST) Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com. [82.41.10.37]) by mx.google.com with ESMTPS id q28sm63212467eea.6.2011.12.05.13.19.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Dec 2011 13:19:34 -0800 (PST) From: Patrick Totzke To: notmuch@notmuchmail.org Subject: [python] unicode strings Date: Mon, 5 Dec 2011 21:19:26 +0000 Message-Id: <1323119969-1485-1-git-send-email-patricktotzke@gmail.com> X-Mailer: git-send-email 1.7.4.1 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 21:19:37 -0000 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