Re: Figuring out file-encoding

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

 



On Mon, Feb 28, 2011 at 06:20:30PM +0100, Asmann, Roland wrote:
> I need to read several files from the HD, but they are saved in 
> different encodings. Can I somehow figure out which encoding I should 
> use when reading the file?

i think detect the file encoding and decode it.
as for detection try using mb_detect_encoding function.
http://php.net/manual/en/function.mb-detect-encoding.php
it works with (PHP 4 >= 4.0.6, PHP 5)

/Jeffrin.

-- 
software engineer.
department of computer science
rajagiri school of engineering and technology.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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