Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: rfc2396 url encoding



On Sun, Nov 06, 2005 at 07:49:11PM +0000, Bart Schaefer wrote:
> urlencode() {
>     setopt localoptions extendedglob
>     input=( ${(s::)1} )
>     print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%$(([##16]#match))}
> }

This changed behavior in that ó (UTF-8) becomes %F3 instead of %C3%B3 .
Thoughts?



Messages sorted by: Reverse Date, Date, Thread, Author