Dear Chris,
$xml =~ s/chr(145)/'/g;
$xml =~ s/chr(146)/'/g;
$xml =~ s/chr(147)//g;
$xml =~ s/chr(148)//g;
Would this work for you?
--\/BEGIN-\/--
warn WARNING: UNTESTED CODE;
my %map = (
chr(145) = q.'.,
chr(146) = q.'.,
On Fri, 2005-07-15 at 13:39 -0400, Chris Brooks wrote:
$xml =~ s/chr(145)/'/g;
$xml =~ s/chr(146)/'/g;
$xml =~ s/chr(147)//g;
$xml =~ s/chr(148)//g;
You can use \xNN to mean the character with hex ascii code NN. Here's
some code to do exactly what you want:
Hi Jeremy and Kripa,
Both of your techniques work -- Thanks!
Although, there's a bit of an oddity. For some reason, the smart
quotes are represented by chr(226), rather than chr(14[5|6|7|8]). If
I do a substitution with chr(226) the smart quotes disappear, but they
are replaced with '809c for