How to detect charset encoding with PHP and command line?

From: Date: Mon, 02 Apr 2007 12:51:19 +0000
Subject: How to detect charset encoding with PHP and command line?
Groups: php.general 
Request: Send a blank email to php-general+get-251922@lists.php.net to get a copy of this message
Hi there, I'd like to know a way to detect the file encoding from PHP and Linux command line too. In PHP I tried mb_detect_encoding() but it doesn't work reliable, first I have to specify a list of posible encodings and second it always returns the first encoding I put in the list no matter what. Thanks for your help, -William

« previous php.general (#251922) next »