note 111104 added to function.iconv
| From: | php dot net at tx0 dot eu | Date: | Tue, 15 Jan 2013 10:55:24 +0000 |
| Subject: | note 111104 added to function.iconv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193072@lists.php.net to get a copy of this message | ||
It seems that it's not possible to use //TRANSLIT and //IGNORE together (neither
//TRANSLIT//IGNORE nor //IGNORE//TRANSLIT worked for me).
An easy workaround is:
<?php $conv = iconv('UTF-8', 'ASCII//TRANSLIT', iconv('UTF-8',
'UTF-8//IGNORE', $text)); ?>
----
Server IP: 69.147.83.199
Probable Submitter: 212.8.208.194
----
Manual Page -- http://php.net/manual/en/function.iconv.php
Edit -- https://master.php.net/note/edit/111104
Del: integrated -- https://master.php.net/note/delete/111104/integrated
Del: useless -- https://master.php.net/note/delete/111104/useless
Del: bad code -- https://master.php.net/note/delete/111104/bad+code
Del: spam -- https://master.php.net/note/delete/111104/spam
Del: non-english -- https://master.php.net/note/delete/111104/non-english
Del: in docs -- https://master.php.net/note/delete/111104/in+docs
Del: other reasons-- https://master.php.net/note/delete/111104
Reject -- https://master.php.net/note/reject/111104
Search -- https://master.php.net/manage/user-notes.php