Detecting a BOM
| From: | Leszek Stachowski | Date: | Wed, 13 Jan 2010 10:42:49 +0000 |
| Subject: | Detecting a BOM | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-301055@lists.php.net to get a copy of this message | ||
Hi,
is there any way to detect BOM in a file? I'm writing a parser which outputs
a number line if there's an error in it and its content. Every time it
parser a file saved in UTF-8 with BOM it outputs those three magic letters.
Can I pre-check for it and skip it? Or convert somehow?
Greetings,
Leszek Stachowski