Steve Jorgensen wrote: <snip> > When escape is supplied (typically "%") it is used as the escape character > in the same way that "%" is used in URL encoding. When a non-ASCII character > is escaped, > it is represented as a sequence of encoded bytes/octets.
I neglected to say that the octet sequence would be for the UTF-8 representation of the non-ASCII character. This is consistent with ECMAScript's `encodeURI` (see https://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3). Also, to clarify why this is needed, it is for when there are non-ASCII control characters such as \u2066 (Left-to-Right Isolate) in the given name value and control characters are not being allowed. Other non-ASCII Unicode characters are permitted, so this is not applicable to those. _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/O6AIDG4BDFQUYYZJYVX24LSNHYHO5JFL/ Code of Conduct: http://python.org/psf/codeofconduct/
