How to "URL decode" a string in Emacs Lisp?

Ken picture Ken · Mar 4, 2009 · Viewed 7.3k times · Source

I've got a string like "foo%20bar" and I want "foo bar" out of it.

I know there's got to be a built-in function to decode a URL-encoded string (query string) in Emacs Lisp, but for the life of me I can't find it today, either in my lisp/ folder or with google.

Anybody remember what it's called?

Answer

huaiyuan picture huaiyuan · Mar 5, 2009
url-unhex-string