![]() |
|
No such thing as a small change | |
PerlMonks |
Re: Issue with reading a unicode fileby quester (Vicar) |
on Jan 07, 2013 at 06:36 UTC ( [id://1011959]=note: print w/replies, xml ) | Need Help?? |
As a guess, since you seem to be on Windows, your input file is likely to begin with a Byte Order Mark (BOM), which Microsoft uses as a convention to distinguish the various flavors of UTF. A UTF-8 byte order mark would be three bytes long, 0xEF,0xBB,0xBF. In perl, it appears as the code point "\N{U+FEFF}". You could try tr/\N{U+FEFF}//d to remove it.
In Section
Seekers of Perl Wisdom
|
|