[racket] question on uri encode decode

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Dec 20 12:22:23 EST 2010

uri-encode only works on strings, so you need to convert to a string.
The decoding problem is caused by the the bytes to UTF-8 conversion --
that byte string isn't a valid UTF-8 string (or something). The URI
encoding functions really should work on bytes, but when they were
written a million years ago bytes didn't exist.


On Mon, Dec 20, 2010 at 4:25 PM, Veer <diggerrrrr at gmail.com> wrote:
> Give a byte string, for example   (bytes 211) , how do I encode it to
> "%D3" , using uri-encode , or
> any other existing function in racket.
> Also when i try to do (uri-decode "%D3") , it complains that :
>  "bytes->string/utf-8: string is not a well-formed UTF-8 encoding: #"\323"
> Thanks
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.