|
From: | Ivan Raikov |
Subject: | Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri. |
Date: | Tue, 15 Jan 2013 15:03:59 +0900 |
This result looks broken. As I noted in my previous mail, the URI representationalready handles non-ASCII characters and escapes on output:$ csi -R uri-common#;1> (make-uri scheme: "http" host: "127.0.0.1" path: '(/ "삼계탕"))#<URI-common: scheme="http" port=#f host="127.0.0.1" path=(/ "삼계탕") query=#f fragment=#f>#;2> (uri->string (make-uri scheme: "http" host: "127.0.0.1" path: '(/ "삼계탕")))If you put percent escapes _inside_ the internal path representation,you'll get double escaping.Parsing is a separate matter, and utf8-string->uri should returnthe URI object without error, but with the unescaped values inthe path and query as resulting from the make-uri above.Unrelated, the actual escaped output looks buggy - it looks likesome characters like the leading "%EC%" are getting dropped.--Alex
[Prev in Thread] | Current Thread | [Next in Thread] |