From: Sebastian Fischmeister Date: Sun, 29 Mar 2015 23:10:53 +0000 (+2000) Subject: Re: UnicodeDecodeError with python API X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a2a0525de19f56f664ca59850f1d65da48fbe6c1;p=notmuch-archives.git Re: UnicodeDecodeError with python API --- diff --git a/4a/35f78d3ef3cd1c4cd72e672a01819c6ca5ef1c b/4a/35f78d3ef3cd1c4cd72e672a01819c6ca5ef1c new file mode 100644 index 000000000..98cd283b1 --- /dev/null +++ b/4a/35f78d3ef3cd1c4cd72e672a01819c6ca5ef1c @@ -0,0 +1,89 @@ +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 30A77431FBF + for ; Sun, 29 Mar 2015 16:11:03 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.138 +X-Spam-Level: +X-Spam-Status: No, score=0.138 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_MED=-2.3] + 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 85Z4RlEcG0Oz for ; + Sun, 29 Mar 2015 16:11:00 -0700 (PDT) +Received: from mailchk-m01.uwaterloo.ca (mailservices.uwaterloo.ca + [129.97.128.141]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E35C5431FAE + for ; Sun, 29 Mar 2015 16:10:59 -0700 (PDT) +Received: from connect.uwaterloo.ca (connhub1.connect.uwaterloo.ca + [129.97.149.113]) + by mailchk-m01.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id + t2TNAskJ015444 + (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); + Sun, 29 Mar 2015 19:10:56 -0400 +Received: from CONNHUB3.connect.uwaterloo.ca (129.97.149.121) by + connhub1.connect.uwaterloo.ca (129.97.149.113) with Microsoft SMTP + Server (TLS) id 14.3.210.2; Sun, 29 Mar 2015 19:10:53 -0400 +Received: from uwaterloo.ca (172.16.39.52) by connhub3.connect.uwaterloo.ca + (129.97.149.121) with Microsoft SMTP Server (TLS) id 14.3.210.2; + Sun, 29 Mar 2015 19:10:53 -0400 +From: Sebastian Fischmeister +To: "W. Trevor King" +Subject: Re: UnicodeDecodeError with python API +In-Reply-To: <20150329163658.GK22036@odin.tremily.us> +References: <874mp4q7e7.fsf@uwaterloo.ca> + <20150329163658.GK22036@odin.tremily.us> +X-Homepage: http://esg.uwaterloo.ca +Date: Sun, 29 Mar 2015 19:10:53 -0400 +Message-ID: <87ego7pfia.fsf@uwaterloo.ca> +MIME-Version: 1.0 +Content-Type: text/plain +X-UUID: 46b5a45e-cab6-47fd-b184-caea11ffedce +X-Miltered: at mailchk-m01 with ID 5518867E.000 by Joe's j-chkmail + (http://j-chkmail.ensmp.fr)! +X-Virus-Scanned: clamav-milter 0.98.6 at mailchk-m01 +X-Virus-Status: Clean +X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 + (mailchk-m01.uwaterloo.ca [129.97.128.141]); + Sun, 29 Mar 2015 19:10:57 -0400 (EDT) +Cc: notmuch +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +Reply-To: sfischme@uwaterloo.ca +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 29 Mar 2015 23:11:03 -0000 + +> My first guess is that the file's encoding doesn't match your locale. +> Do you have a non-ASCII locale set? You can check with: + +It seems to be more tricky than I thought. I didn't have a locale set. + +When I set one, I can parse some emails with this: + +export LANG=en_US.latin-1 + +Others with this: + +export LANG=en_US.UTF-8 + +Others fail with either of the two. + +I can display all messages correctly in emacs though. + + Sebastian +