Function: browse-url-url-encode-chars
browse-url-url-encode-chars is a byte-compiled function defined in
browse-url.el.gz.
Signature
(browse-url-url-encode-chars TEXT CHARS)
Documentation
URL-encode the chars in TEXT that match CHARS.
CHARS is a regexp that matches a character.
Source Code
;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; URL encoding
(defun browse-url-url-encode-chars (text chars)
"URL-encode the chars in TEXT that match CHARS.
CHARS is a regexp that matches a character."
(replace-regexp-in-string chars
(lambda (s)
(format "%%%X" (string-to-char s)))
text))