Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rfc2396 url encoding
- X-seq: zsh-workers 23319
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: rfc2396 url encoding
- Date: Tue, 24 Apr 2007 23:47:45 -0400
- In-reply-to: <1051106194911.ZM32000@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20051106185713.GA11612@xxxxxxxxxxx> <1051106194911.ZM32000@xxxxxxxxxxxxxxxxxxxxxxx>
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