[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
w3mee, encoding of url
Pierre Gaston <firstname.lastname@example.org> writes:
I've come up with a much better solution (after studying the w3m code a bit)than the previous one.
I put this in w3m-view-this-url-1 :
(ne w3m-input-coding-system w3m-current-coding-system)
(string-match "" \\|[^0-9a-fA-F$_.+!*/=:#'(),%-]"" url))
(setq (w3m-url-encode-string url)))
So url are encoded if the encoding of the page is different
from the one use for input and if the url contains forbidden characters
the url is encoded.
I'm not sure if w3m-view-this-url-1 is the best place though.
PS: If you consider my mails as noise tell me so ;-)