hannes-brt
11/26/2010 - 7:51 PM

URL escapes and unescapes strings

URL escapes and unescapes strings

;; Interactive functions to hexify and unhexify urls
(defun hexify-region (start end)
  (interactive "r")
  (let ((hex-string (url-hexify-string 
		   (filter-buffer-substring start end))))
    (delete-region start end)
    (insert hex-string)))

(defun unhexify-region (start end)
  (interactive "r")
  (let ((hex-string (url-unhex-string 
		   (filter-buffer-substring start end))))
    (delete-region start end)
    (insert hex-string)))