Re: [openpgp] Character encodings

Wyllys Ingersoll <wyllys@gmail.com> Tue, 17 March 2015 15:55 UTC

Return-Path: <wyllys@gmail.com>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DD2FC1A8028 for <openpgp@ietfa.amsl.com>; Tue, 17 Mar 2015 08:55:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7uAl56ayU9VZ for <openpgp@ietfa.amsl.com>; Tue, 17 Mar 2015 08:55:35 -0700 (PDT)
Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4CE881A7D84 for <openpgp@ietf.org>; Tue, 17 Mar 2015 08:55:35 -0700 (PDT)
Received: by oibu204 with SMTP id u204so12104979oib.0 for <openpgp@ietf.org>; Tue, 17 Mar 2015 08:55:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=xXumgTPwR/hpPOu0vqM+PWNSi1P637mZ/Pr8sAVMm3w=; b=ddpauM5OOL+CWr/oA3SRcSS8NVzujWfAM6NoFRPZFis9v3sx+xGtx6nfD9nDMupNYi uiYb0U0+4DJIiIAS4/Ppi1sOuk/a7urzd2+Ktv1+kbWBLOL6LZ/LXUJP7rcQeUqbAEAk PT9So3ae/5vu0jLuv55LXH+it8L4Z54s2pb+zt67q95V1xdxdjESxgVHX9AV95ow74z0 aNmUp4wCR2UXyKMXXscV6EH9S+zpSTiHOOcWPLWkaFVQo3JK/huvYEOJwL1wNoyUoom/ yEVx//8bFn/DObZHr65NAw0Nz+XUjI4qvAoYnFdKEaED+gIncyhvzN37ObkRphV3k6pX HI7Q==
X-Received: by 10.60.222.71 with SMTP id qk7mr53721617oec.37.1426607734743; Tue, 17 Mar 2015 08:55:34 -0700 (PDT)
MIME-Version: 1.0
References: <CAHRa8=UbKKnmAmHCxsGwONsgM5udRbbKkm=Nyzf7Jrgg70+j5A@mail.gmail.com> <20150317155023.GG2983@singpolyma-liberty>
In-Reply-To: <20150317155023.GG2983@singpolyma-liberty>
From: Wyllys Ingersoll <wyllys@gmail.com>
Date: Tue, 17 Mar 2015 15:55:33 +0000
Message-ID: <CAHRa8=XygmC8-Ppq=AtNf_K_GC-BVHqUn+NNSW8yYytuRd=9hg@mail.gmail.com>
To: Stephen Paul Weber <singpolyma@singpolyma.net>
Content-Type: multipart/alternative; boundary="001a11c2a08043693905117dffe2"
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/taX6nfjsRSHSPAsiM2bx-z_y2YA>
Cc: "openpgp@ietf.org" <openpgp@ietf.org>
Subject: Re: [openpgp] Character encodings
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Mar 2015 15:55:37 -0000

Right, but they don't.  The application doing the encryption really doesn't
know what the original character encoding was, so doing the conversion can
result in lost or corrupted messages.

I think the only way to get it right is if the message composer (i.e. mail
client usually) is tightly coupled with the PGP engine so that it can pass
along the character encoding when the encryption request is made.



On Tue, Mar 17, 2015 at 11:50 AM Stephen Paul Weber <
singpolyma@singpolyma.net> wrote:

> >4880 says that everything should be UTF-8.  However, the reality is that
> >UTF8 is not used everywhere and there are lots of clients that compose
> >messages in their native preferred character set (Latin5, Greek, Kanji,
> >etc)
>
> But a conforming OpenPGP implementation should convert this to UTF-8 before
> encrypt/sign if using text packets.
>
> --
> Stephen Paul Weber, @singpolyma
> See <http://singpolyma.net> for how I prefer to be contacted
> edition right joseph
>