Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Excluding non ascii characters

by ikegami (Patriarch)
on Apr 06, 2009 at 19:32 UTC ( [id://755829]=note: print w/replies, xml ) Need Help??


in reply to Re: Excluding non ascii characters
in thread Excluding non ascii characters

That will only remove the non-ASCII characters that are in iso-latin-1, a very small portion of non-ASCII characters. Fix:
# Replace with space $myline =~ s/[^\x00-\x7F]/ /g; # Delete character $myline =~ tr/\x00-\x7F//cd; $myline =~ s/[^\x00-\x7F]//g;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-18 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found