|more useful options|
converting smart quotesby slugger415 (Scribe)
|on Mar 19, 2012 at 21:59 UTC||Need Help??|
slugger415 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi all, I've looked at this topic . I'm trying to convert smart quotes and other "dumb" characters to standard ASCII characters; what I've found, including this topic here, haven't worked.
demoroniser seems to recognize the single smart quote as three separate characters, and makes the 3rd one a <SUP> element.
If you look at this page you'll see the problematic single quote in the What's New string. I can't seem to search on it with a regex or \x92 or one of those... I would like to find and replace all such miscreant characters. Running Tidy converts it to three character entities... I haven't seen a bit of code that works.
Any suggestions would be most appreciated, as always.
UPDATE: also tried HTML::Entities:
and ord() might work if I could properly search on it...