Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2017-12-17 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (466 votes). Check out past polls.

    Notices?