|
From: | Alex Shinn |
Subject: | Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri. |
Date: | Tue, 15 Jan 2013 14:44:08 +0900 |
Hi again,
I have now extended the utf8 code in uri-generic, so that UTF-8 sequences are percent-encoded as lists of the form '(% h1 h2 [% h3 h4 ...])). The percent-decoding routine is not going to decode sequences of more that one byte, so that now percent encoding normalization will not interfere with encoded UTF-8 sequences. I have also renamed the iri->uri routine to utf8-string->uri. I think now its behavior is compliant with both RFC 3986 and 3987:
(utf8-string->uri "http://example.com/삼계탕") =>
#(URI scheme=http authority=#(URIAuth host="example.com" port=#f) path=(/ "%EC%82%BC%EA%B3%84%ED%83%95") query=#f fragment=#f)
[Prev in Thread] | Current Thread | [Next in Thread] |