P is for Practical | |
PerlMonks |
Converting UTF8 to ANSIby palkia (Monk) |
on Aug 25, 2017 at 18:09 UTC ( [id://1198027]=perlquestion: print w/replies, xml ) | Need Help?? |
palkia has asked for the wisdom of the Perl Monks concerning the following question:
Hello. I'm currently working with many *.txt files, but can only use ANSI Encoded ones, yet some of the files are utf8. I tried to convert them but the best I was able to figure out is how to detect utf8 files ($txtLines[0] =~ /^\x{EF}\x{BB}\x{BF}/), so I can convert them manually one by one via the "Notepadd" program. Eh..................... yeah, you get the picture. Ideas ? Thank you very much for any assistance ☺
Back to
Seekers of Perl Wisdom
|
|