"JJ" <d...@nah.meh> wrote...
>
> iconv/win_iconv don't play nice if the source file contains BOM,
> which is this byte sequence: EF BB BF
Don't know iconv firsthand, but that would be surprising on the part
of a utility specifically meant for converting between encodings.
Perhaps it has command line switches to deal with UTF-8 BOMs?
> If the file doesn't have it, it's probably not in UTF-8 encoding,
With this, I disagree. UTF-8 is a single-byte encoding, and therefore
doesn't need a BOM to disambiguate byte order. Most UTF-8
encoded files don't carry the BOM, it's not required and generally not
recommended except in cases where it's used as a tag or signature.
Liviu