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

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

by freonpsandoz (Sexton)
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 chilling in the Monastery: (4)
As of 2020-08-11 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (62 votes). Check out past polls.

    Notices?