|
From: | Alex Shinn |
Subject: | Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri. |
Date: | Wed, 16 Jan 2013 11:22:57 +0900 |
On Wed, Jan 16, 2013 at 12:39:16AM +0900, Alex Shinn wrote:This cannot work because uri-common is re-using uri-generic's parser.
> The internal representation is either decoded, or it is encoded.
> Either can be made to work.
>
> In this case, the decoded uri-common representation of the former is:
>
> ((bool-expr . "x&y=1"))
>
> and the decoded representation of the latter is:
>
> ((bool-expr . "x") (y . "1"))
>
> just as you say, so this is how they are stored in the URI object.
>
> In uri-generic, both get parsed to:
>
> ((bool-expr . "x&y=1"))
Also, uri-generic doesn't do alist-decoding at all, because form-encoding
is a HTML affair and has nothing to do with HTTP or URI standards.
[Prev in Thread] | Current Thread | [Next in Thread] |