I wrote this routine to do the conversion for me.  When you run it at the
command line is takes a string as input, and prints out the hex val of each
char in the string.

#!/usr/bin/perl
# c2hex.pl - Converts characters to hex values.

my $chars = join(' ',@ARGV);

for ( split(//, $chars) ) {
   print sprintf("$_ => %%%2X",ord($_))."\n";
}

Here is some sample input (which includes the quotes).

$ c2hex '"&*()'
" => %22
& => %26
* => %2A
( => %28
) => %29

Rob

-----Original Message-----
From: Fred Sahakian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 1:32 PM
To: [EMAIL PROTECTED]
Subject: Hexadecimal Dictionary


Anyone know of a good online Hexadecimal Dictionary?

I know that %OD%OA is a carriage return, but I need to know what the code is
for a quote mark (") as well as a few others..thanks!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to