Removing smart quotes etc

Paul Makepeace paulm at paulm.com
Sun Jan 25 19:06:12 GMT 2009


Does anyone know of a CPAN module that'll switch the various
apostrophes to ', dashes to -, etc.? `A la the demoroniser,
http://www.fourmilab.ch/webtools/demoroniser/

The issue I'm running into is our database has data like "L'Express"
but could be queried with L'Express or L´Express or who knows what.
So, what would be particularly sexy is if DBIx::Class could
auto-replace this junk before going anywhere near the DB, e.g.
search() and insert() would convert any dodgy high-bit characters to
their ASCII versions first.

P



More information about the london.pm mailing list