Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Un-hex

DZone's Guide to

Un-hex

·
Free Resource

#!/usr/bin/perl
#
# un-hex - convert a hexadecimal encoded url (i.e. with % signs) to ASCII
# By John
#

while (<>) {
    chomp() ;
    s/[%=]([A-F0-9][A-F0-9])/pack("C", hex($1))/egi;
    print "$_\n";
}
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}