|
From: | Alex Shinn |
Subject: | Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri. |
Date: | Tue, 15 Jan 2013 11:45:12 +0900 |
I'll try your modification and and let you know whether it works or not.Thank you very much. :-)My proposed hack(yes, no solution) just works for me but I found that it is just wrong w.r.t RFC.
Thank you again.On Mon, Jan 14, 2013 at 5:08 PM, Ivan Raikov <address@hidden> wrote:
Hi Sungjin,Thanks for trying to use the uri-generic library. As Peter already pointed out, uri-generic and uri-common are intended to implement RFC 3986 (URIs), and so far no effort has been done to support RFC 3987 (IRIs).
However, the IRI RFC does define a mapping from IRI to URI, where Unicode characters in IRIs are converted to percent encoded UTF-8 sequences. The caveat here is that if you try to decode these percent-encoded sequences they will likely result in invalid URI characters. I have prototyped a procedure iri->uri which attempts to percent-encode all UTF-8 sequences in the input string and create a URI. You can see it here:
[Prev in Thread] | Current Thread | [Next in Thread] |