You are here: Re: How to determine if a file is UTF8 encoded? « PHP Programming Language « IT news, forums, messages
Re: How to determine if a file is UTF8 encoded?

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация