Re: [Tools-discuss] boilerplate BCP14 and UTF8

Michael Richardson <mcr+ietf@sandelman.ca> Wed, 04 December 2019 17:49 UTC

Return-Path: <mcr+ietf@sandelman.ca>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C7317120853 for <tools-discuss@ietfa.amsl.com>; Wed, 4 Dec 2019 09:49:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.178
X-Spam-Level:
X-Spam-Status: No, score=-3.178 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 PuelHB8tH8E7 for <tools-discuss@ietfa.amsl.com>; Wed, 4 Dec 2019 09:49:17 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6F68E120834 for <tools-discuss@ietf.org>; Wed, 4 Dec 2019 09:49:17 -0800 (PST)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id 11B6F3818F for <tools-discuss@ietf.org>; Wed, 4 Dec 2019 12:45:39 -0500 (EST)
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 612B2AAB for <tools-discuss@ietf.org>; Wed, 4 Dec 2019 12:49:16 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
cc: tools-discuss@ietf.org
In-Reply-To: <20931.1575481656@localhost>
References: <20931.1575481656@localhost>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Date: Wed, 04 Dec 2019 12:49:16 -0500
Message-ID: <21302.1575481756@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/WFTisamtYZU-jMv38Pz5AVOElpM>
Subject: Re: [Tools-discuss] boilerplate BCP14 and UTF8
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Dec 2019 17:49:19 -0000

Michael Richardson <mcr@sandelman.ca> wrote:
    > Kramdown gives me this error in some documents:

    > /usr/local/rvm/gems/ruby-2.6.5/gems/kramdown-rfc2629-1.2.12/bin/kramdown-rfc2629:333:in
    > `encode': U+00A0 from UTF-8 to US-ASCII (Encoding::UndefinedConversionError)

    > when I include {::boilerplate bcp14}

    > I don't have a BOM in my markdown. I don't think I should.
    > It feels like the output ought to be in UTF-8, but isn't somehow.

I found:
  coding: us-ascii

in my markdown, and removed it.  Maybe we can make the error more meaningful?
Or maybe the template that is copied in could be US-ASCII only?

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-