Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Stripping funny characters

by extremely (Priest)
on Dec 12, 2000 at 06:03 UTC ( #46202=note: print w/ replies, xml ) Need Help??


in reply to Stripping funny characters

As I recall, the smartquotes are: \x91-\x94. you should be able to do $text=~tr/\x91-\x94/''""/; and clean it up nicely; If they get pasted to "‘" or such html nasties you'll need a different approach, of course.

--
$you = new YOU;
honk() if $you->love(perl)


Comment on Re: Stripping funny characters
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (16)
As of 2014-04-16 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (432 votes), past polls