[hunchentoot-devel] URL-DECODE Problem with MultiByte (> 255) Characters

Zach Beane xach at xach.com
Wed Apr 25 23:05:07 UTC 2007


On Thu, Apr 26, 2007 at 02:01:38AM +0300, Volkan YAZICI wrote:
> Hi,
> 
> While I was trying to issue some regression tests over my URI path
> handling routine, I met with such a problem:
> 
> ; Any character that's bigger than 255 reproduces the error.
> KARPUZ> (code-char 305)
> #\LATIN_SMALL_LETTER_DOTLESS_I
> KARPUZ> (wiki-path-to :filename (wiki-path-from :uri "/image/foo/yok artık daha neler///.asd/&baz"))
> ; Evaluation aborted
> KARPUZ> (hunchentoot:url-decode
>           (make-string 1 :initial-element (code-char 305))
>           (flex:make-external-format :utf8 :eol-style :lf))
[snip]
> 
> Would somebody help me to fix the error please?

URLs should have only ASCII characters. For other characters (and for
special ASCII characters), you must use %XX escapes.

Zach




More information about the Tbnl-devel mailing list