Re: #2343 proposal: Display Strings

On Fri, Mar 31, 2023 at 04:32:01PM +0900, Mark Nottingham wrote:
> As discussed in Yokohama, our final issue on Structured Fields bis is
> #2343, regarding support for non-ASCII strings.
> 
> The sense in the room was that we would let the document go through
> its Working Group Last Call (which should start shortly, now that a
> new draft has been published), but we would also see if we can come
> to agreement on a solution to this issue in that time.
> 
> My attempt to do so is here:
>   https://github.com/httpwg/http-extensions/pull/2494
> 
> This PR adds a new data type to SF, a "Display String." It is
> indicated by a '%' leading character, and the remaining value is
> a percent-encoded, quote-delimited string.
>
> Feedback appreciated.

There seems to be two layers of escaping? I don't think that
is a good idea.

There are multiple ways to do only one layer of escaping:

- Escaping doublequote as %22, and having backslash be literal.
- \u{codepoint} for unprintables (codepoint is 1-6 xdigits).
- \codepoint; for unprintables (codepoint is 1-6 xdigits).



-Ilari

Received on Friday, 31 March 2023 11:25:13 UTC