Posted by Philip Ronan on 11/18/05 19:15
"Thomas Podlesak" wrote:
> I need a check, if a file is utf8 encoded. I only found the php-functions
> 'iconv' and 'recode'. But it seems it´s not possible to determine the
> encoding with them. Isn´t there any similar function to the 'file'-command
> on linux for php?
Try this: <http://php.net/mb-detect-encoding> (but make sure you read the
notes at the bottom, especially <http://php.net/mb-detect-encoding#50087>).
--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
[Back to original message]
|