[plt-scheme] URL encoding/decoding

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Jun 23 11:39:07 EDT 2002

Noel Welsh wrote:

> It appears not.  E.g.

Hm. Reading some more.
What about string->html?

The doc says:

    (string->html string) -> html-string
     Converts a string into a html-string by applying
     the approriate HTML quoting conventions.

Testing:

    > (require (lib "cgi.ss" "net"))
    ADVARSEL: Interaktionsvinduet er ude af trit med definitionsvinduet.
Klik på Kør.
    > (string->html "jens axel")
    "jens axel"

Huh? No %20?
I must have missed something.

Another option is to steal the code from Nørmarks LAML (which
runs fine on MzScheme):


http://www.cs.auc.dk/~normark/scheme/distribution/laml/lib/man/encode-decode
.html

--
Jens Axel Søgaard





Posted on the users mailing list.