You should use either CGI (best solution) or URI::Escape.
In reply to Re: Regex to cange HTML %?? to char(0x??); by myocom in thread Regex to cange HTML %?? to char(0x??); by Buckaroo Buddha