getting rid of...
Posted on 1998-06-22
I'm making a bbs and need advice on a bit of code. Right now whenever anyone submits there post the subject looks like What%27s+up%3f instead of What's+up? I use this to encode all white spaces to + signs
$Subject =~ s/([^\w ])/'%'.unpack('H*',$1)/eg;
$Subject =~ tr/ /+/;
and this to get it back from + signs to spaces
Is this the reason all my non alphabetic and numeric characters endup like this?