note 116951 added to function.iconv

From: Date: Thu, 26 Mar 2015 02:08:51 +0000
Subject: note 116951 added to function.iconv
Groups: php.notes 
Request: Send a blank email to php-notes+get-202038@lists.php.net to get a copy of this message
As orrd101 said, there is a bug with //IGNORE in recent PHP versions (we use 5.6.5) where we couldn't convert some strings (i.e. "∙" from UTF8 to CP1251 with //IGNORE). But we have found a workaround and now we use both //TRANSLIT and //IGNORE flags: $text="∙"; iconv("UTF8", "CP1251//TRANSLIT//IGNORE", $text); ---- Server IP: 72.52.91.14 Probable Submitter: 192.171.18.145 ---- Manual Page -- http://php.net/manual/en/function.iconv.php Edit -- https://master.php.net/note/edit/116951 Del: integrated -- https://master.php.net/note/delete/116951/integrated Del: useless -- https://master.php.net/note/delete/116951/useless Del: bad code -- https://master.php.net/note/delete/116951/bad+code Del: spam -- https://master.php.net/note/delete/116951/spam Del: non-english -- https://master.php.net/note/delete/116951/non-english Del: in docs -- https://master.php.net/note/delete/116951/in+docs Del: other reasons-- https://master.php.net/note/delete/116951 Reject -- https://master.php.net/note/reject/116951 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202038) next »