Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Removing Non-Ascii chars from text file

by freonpsandoz (Acolyte)
on Oct 02, 2016 at 05:06 UTC ( #1173108=note: print w/replies, xml ) Need Help??


in reply to Re: Removing Non-Ascii chars from text file
in thread Removing Non-Ascii chars from text file

You also need to be aware of what the encoding of the file is and what encoding Perl defaults to on your system. For a UTF-8 file on Windows, I found that I needed to add "use open qw(:std :utf8);" before the "s///" command so that Perl would expect the input to be UTF-8.

  • Comment on Re^2: Removing Non-Ascii chars from text file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1173108]
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 2019-07-20 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (6 votes). Check out past polls.

    Notices?