note 106130 rejected from function.iconv by danbrown

From: Date: Thu, 13 Oct 2011 17:29:26 +0000
Subject: note 106130 rejected from function.iconv by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183858@lists.php.net to get a copy of this message
Note Submitter: voloschuk_roman at ukr dot net ---- I've tried to convert files in differtent charset to UTF-8 using the next code $charset = mb_detect_encoding($fileData, array('ASCII', 'UTF-8', 'windows-1251', 'KOI8-R'), true); var_dump(iconv($charset, 'UTF-8', $fileData)); For some data charset was FALSE, but iconv converted data to UTF-8 always! Even if $charset = FALSE. Is it feature or bug? I expect it's feature for it's very comfortably))

« previous php.notes (#183858) next »