in reply to Re: Best Way To Parse Concordance DAT File Using Modern Perl?
in thread Best Way To Parse Concordance DAT File Using Modern Perl?
If it's a UTF-8 file, isn't it meant to have a 3 byte BOM? Your BOM indicates that it's a UTF-16 file, not UTF-8.
It is a Unicode BOM encoded in three bytes in the UTF-8 character encoding scheme. But it's just one character (one Unicode code point), represented in Perl as \x{FEFF} or \N{BYTE ORDER MARK}. In a decoded, abstract Unicode string, distinctions between various encodings (serializations) of the string don't exist.
Jim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best Way To Parse Concordance DAT File Using Modern Perl?
by Anonymous Monk on Jan 15, 2013 at 23:24 UTC |