- From: Martin Thomson <mt@lowentropy.net>
- Date: Sat, 01 Apr 2023 09:41:04 +0900
- To: ietf-http-wg@w3.org
On Fri, Mar 31, 2023, at 20:24, Ilari Liusvaara wrote: > 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). There is some value in having a single code path, even if that means double-escaping, so I'm not too concerned about the doubling up. %22 or %5C are both valid ways to express those characters as it is, so you can avoid the two-pass encode easily. Either way, doing both at once is fine. The other options draw more from programming language syntax, which might be nice, but the first is less efficient in a lot of cases; the second seems fine.
Received on Saturday, 1 April 2023 00:41:37 UTC