in reply to Escaping quote marks
Or for every not alphanum char (and not quotes only):s/(["'`])/'%'.unpack 'H*',$1/eg;
Or perhaps you only want it for chars that can't be in a URI:s/(\W)/'%'.unpack 'H*',$1/eg;
s/([^\w;\/?:\@&=\+\$,\[\]\-\.!~\*'\(\)])/'%'.unpack 'H*',$1/eg;
|
|---|