note 106130 added to function.iconv

From: Date: Thu, 13 Oct 2011 09:21:24 +0000
Subject: note 106130 added to function.iconv
Groups: php.notes 
Request: Send a blank email to php-notes+get-183842@lists.php.net to get a copy of this message
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)) ---- Server IP: 69.147.83.197 Probable Submitter: 194.106.219.94 ---- Manual Page -- http://www.php.net/manual/en/function.iconv.php Edit -- https://master.php.net/note/edit/106130 Del: integrated -- https://master.php.net/note/delete/106130/integrated Del: useless -- https://master.php.net/note/delete/106130/useless Del: bad code -- https://master.php.net/note/delete/106130/bad+code Del: spam -- https://master.php.net/note/delete/106130/spam Del: non-english -- https://master.php.net/note/delete/106130/non-english Del: in docs -- https://master.php.net/note/delete/106130/in+docs Del: other reasons-- https://master.php.net/note/delete/106130 Reject -- https://master.php.net/note/reject/106130 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183842) next »