[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: w3mee, encoding of url

Pierre Gaston <pgas@intracom.gr> writes:

oups sorry if forgot something:

(if (and 
      (ne w3m-input-coding-system w3m-current-coding-system) 
      (string-match "" \\|[^0-9a-fA-F$_.+!*/=:#'(),%-]"" url))
    (setq (w3m-url-encode-string url w3m-current-coding-system)))  

> Pierre Gaston <pgas@intracom.gr> 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 :
> (if (and 
>      (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.
> Pierre
> PS: If you consider my mails as noise tell me so ;-)