[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string splitting
From: |
Andy Wingo |
Subject: |
Re: string splitting |
Date: |
Wed, 22 Feb 2012 12:23:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Wed 22 Feb 2012 11:36, Catonano <address@hidden> writes:
> Andy, when given my string, your function returns
>
> (("blah/blah?param1" . "123") ("amp;param2" . "456"))
You have two problems here. One is that you need to be running it as
(parse-www-form-urlencoded (uri-query (string->uri uri)))
> What I wanted is to get
>
> "blah/blah?param1=123¶m2=456
>
> FROM
>
> "blah/blah?param1=123&param2=456
Here, Htmlprag should be turning the & into &. If it's not doing
that, that's a problem.
First you parse HTML, expanding parsed entities (&foo;). Then you parse
the URI. Then you parse the query part.
Andy
--
http://wingolog.org/