note 95296 added to function.iconv
| From: | DmitriSnytkinecms dot lampcms dot com at osu1 dot php dot net | Date: | Thu, 24 Dec 2009 18:32:29 +0000 |
| Subject: | note 95296 added to function.iconv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164307@lists.php.net to get a copy of this message | ||
Be careful with //TRANSLIT//IGNORE option.
While it may have worked for some people, it failed miserably in my situation. The iconv() stopped
at the first illegar char, cutting off the string right there, which is the default behaviour of
iconv(), so it did not respect the //IGNORE switch after the //TRANSLIT
When I used only the //IGNORE switch, it did work properly, just the illegal characters were
dropped.
It may be the case when the result depends on the version of iconv or maybe even version of php
Just don't assume that //TRANSLIT//IGNORE will work together all the time because it does not.
----
Server IP: 69.147.83.197
Probable Submitter: 75.97.204.207
----
Manual Page -- http://www.php.net/manual/en/function.iconv.php
Edit -- https://master.php.net/note/edit/95296
Del: integrated -- https://master.php.net/note/delete/95296/integrated
Del: useless -- https://master.php.net/note/delete/95296/useless
Del: bad code -- https://master.php.net/note/delete/95296/bad+code
Del: spam -- https://master.php.net/note/delete/95296/spam
Del: non-english -- https://master.php.net/note/delete/95296/non-english
Del: in docs -- https://master.php.net/note/delete/95296/in+docs
Del: other reasons-- https://master.php.net/note/delete/95296
Reject -- https://master.php.net/note/reject/95296
Search -- https://master.php.net/manage/user-notes.php