Re: Check the byte sequence of a file to tell if it is UTF-8 without the BOM using PHP ?

From: Date: Sun, 22 May 2011 07:12:29 +0000
Subject: Re: Check the byte sequence of a file to tell if it is UTF-8 without the BOM using PHP ?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.general 
Request: Send a blank email to php-general+get-313066@lists.php.net to get a copy of this message
On 22 May 2011 09:03, Eli Orr (Office) <eli.orr@logodial.com> wrote: > Dear Peter, > > But my point was different. > > If you DO NOT have any BOM of a File does > > mb_detect_encodin > > can detect the file type by scanning the whole file ?? > A few points: 1. top-posting on this list is frowned upon. Please bottom-post. 2. I did not write anything about BOM as far as I can recall. Neither does the page I linked to contain much about BOM (I really suggest reading it - as pointed out, the first comment should help you) Regards Peter -- <hype> WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 </hype>

« previous php.general (#313066) next »