Function: browse-url-encode-url

browse-url-encode-url is a byte-compiled function defined in browse-url.el.gz.

Signature

(browse-url-encode-url URL)

Documentation

Escape annoying characters in URL.

The annoying characters are those that can mislead a web browser regarding its parameter treatment.

Source Code

;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
(defun browse-url-encode-url (url)
  "Escape annoying characters in URL.
The annoying characters are those that can mislead a web browser
regarding its parameter treatment."
  ;; FIXME: Is there an actual example of a web browser getting
  ;; confused?  (This used to encode commas and dollar signs, but at
  ;; least Firefox handles commas correctly and doesn't accept those
  ;; encoded.)
  (browse-url-url-encode-chars url "[\"() ]"))