[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
url-decode-url missing
From: |
Juri Linkov |
Subject: |
url-decode-url missing |
Date: |
Sun, 03 Nov 2019 23:12:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
There is 'url-encode-url' in lisp/url/url-util.el, but
no inverse function with the expected name 'url-decode-url'.
There is a pair of url-hexify-string/url-unhex-string,
and it seems url-unhex-string does something like decoding,
but its output is garbled text. For example:
(let ((url "https://en.wiktionary.org/wiki/Ω"))
(string-equal url (url-unhex-string (url-encode-url url))))
=> nil
Using decode-coding-string doesn't help either:
(let ((url "https://en.wiktionary.org/wiki/Ω"))
(string-equal url (decode-coding-string
(url-unhex-string (url-encode-url url))
'utf-8)))
=> nil
- url-decode-url missing,
Juri Linkov <=