help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to escape a string which will be added as a ?key=value parameter


From: Yuri Khan
Subject: Re: How to escape a string which will be added as a ?key=value parameter in a url?
Date: Mon, 28 Sep 2015 06:45:49 +0600

On Mon, Sep 28, 2015 at 2:20 AM, Michael Heerdegen
<michael_heerdegen@web.de> wrote:
> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> I have a bunch of keys and values, and I want to construct a url with
>> a ?key=value&key2=value2 syntax.  Is there a function which would
>> properly escape characters like ?, =, & for that?
>
> Maybe `url-hexify-string'?

More like url-build-query-string.

Blindly substituting the value for %s in a format string, as Emanuel
suggests, is definitely not the right thing.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]