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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>  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



--
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@xxxxxxxxxxxxx
Skype: _eliorr.com_

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux