(keitai-l) Re: tech- acsii to hex conversion for url strings in email

From: M. David <davidm1_at_hotmail.com>
Date: 04/01/01
Message-ID: <LAW2-F447wo95EFk2H30000ab9c@hotmail.com>
Mika,

Thanks for the code, with a few changes so that it can be used on a url-

$hex_str = unpack("H32",  $asc_str);
$hex_str =~ s/(..)/ $1/g;	
$hex_str =~ s/ /%/g;	

am i right in assuming there are 2 characters for each 1 in regular ascii?

David

----------------------------------
iKaiwa.com    http://iKaiwa.com  
Japanese Mobile Contents Portal [ringing tones, greeting cards, homepage 
community]
ClubTomo      http://ClubTomo.com   Club Community

CLICK!        http://ikaiwa.com/click/ 
Community for Linking Internet Companies in Kansai!

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


[ Did you check the archives?   http://www.appelsiini.net/keitai-l/ ]
Received on Sun Apr 1 20:27:49 2001