![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
How to handle unicode txt file on Windowsby cheerful (Initiate) |
on Nov 03, 2008 at 17:18 UTC ( #721156=perlquestion: print w/replies, xml ) | Need Help?? |
cheerful has asked for the wisdom of the Perl Monks concerning the following question: They starts with the byte order market FFFE or FEFF. I tried something like this:
But the following read
still generates a lot of error print $line will produces letter alternating with space. The script deals with just ascii text. 1. What's the proper to detect unicode in file? 2. How do I deal with unicode string in regular expression matching? 3. Do I need to convert unicode to non-unicode string to do string operation incl. matching? If so, what's the way to do that?
Back to
Seekers of Perl Wisdom
|
|