|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: UTF-8 text files with Byte Order Markby ikegami (Pope) |
| on Feb 13, 2007 at 17:55 UTC ( #599731=note: print w/ replies, xml ) | Need Help?? |
|
Having Perl remove the BOM automatically would be bad. print while <$fh>; would no longer print out a file exactly, for example. It wouldn't be possible to print out a file exactly by other means either.
Patient: "Doctor, it hurts when I do this."
If your program doesn't accept BOMs, don't feed it any. BOMs are not required. Alternatively, you could change your spec and your program to accept it.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||