Re: Check the byte sequence of a file to tell if it is UTF-8 without the BOM using PHP ?
| From: | Office) | Date: | Sun, 22 May 2011 07:19:42 +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 15 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313067@lists.php.net to get a copy of this message | ||
Thank you Peter.
Can you please advise if
mb_detect_encodin does detect the file type by its structure / content?
Thanks
Eli
On 22/05/2011 10:12, Peter Lind wrote:
On 22 May 2011 09:03, Eli Orr (Office)<eli.orr@logodial.com> wrote:-- Best Regards, *Eli Orr* CTO & Founder *LogoDial Ltd.* M:+972-54-7379604 O:+972-74-703-2034 F: +972-77-3379604 Plaut 10, Rehovot, Israel Email: _Eli.Orr@LogoDial.com_ Skype: _eliorr.com_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