Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: converting smart quotes

by tangent (Priest)
on Mar 20, 2012 at 12:05 UTC ( #960563=note: print w/replies, xml ) Need Help??


in reply to Re^2: converting smart quotes
in thread converting smart quotes

tobyink's regular expression is making the character (and others if present) visible.
To convert the specific character you mention to a normal ASCII single quote:
$content =~ s/\x{2019}/'/g;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960563]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2016-09-25 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (463 votes). Check out past polls.