Don't ask to ask, just ask | |
PerlMonks |
Re: Using File::Tail on a unicode fileby moritz (Cardinal) |
on Mar 07, 2012 at 10:00 UTC ( [id://958233]=note: print w/replies, xml ) | Need Help?? |
If the file is in UTF-16BE, then the newline recognition isn't a huge problem. The newline is then encoded as 0x00 0x0a</c>, so the line ending recognition doesn't break apart UTF-16 characters. Of course there is still the possibility of getting false positives for characters U+0a00 to U+0aFF - you have to judge for yourself if that is a problem for you.
In Section
Seekers of Perl Wisdom
|
|