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:
encode_entities($b);
result:
What’s
and ord() might work if I could properly search on it...
Scott
In reply to converting smart quotes by slugger415
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |