in reply to Don't want BOM in output file
:utf8
Declares that the stream accepts perl's *internal* encoding of
characters. (Which really is UTF-8 on ASCII machines, but is
UTF-EBCDIC on EBCDIC machines.) ...
Note that this layer does not validate byte sequences. For reading
input, using ":encoding(utf8)" instead of bare ":utf8" is strongly
recommended.
I recommend looking at the utf8::all module, which wraps all these confusing utf8 machinations in one pragma, and allows you do simply use '<' or '>' as the mode when opening text files (see that module's synopsis).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Don't want BOM in output file
by Eliya (Vicar) on Oct 14, 2011 at 19:27 UTC |