note 98448 added to function.iconv
| From: | niek dot kouwenberg at care dot nl | Date: | Wed, 16 Jun 2010 07:43:44 +0000 |
| Subject: | note 98448 added to function.iconv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170169@lists.php.net to get a copy of this message | ||
I've recently encountered a problem with iconv (TRANSLIT) which works in some locations but
fails in others.
<?php
// this is the expected behavior:
echo iconv('UTF-8', 'ASCII//TRANSLIT', 'carré, noël,
enquête');
// outputs: carre, noel, enquete
// and this I can't explain: (different server, same PHP)
echo iconv('UTF-8', 'ASCII//TRANSLIT', 'carré, noël,
enquête');
// outputs: carr'e, no"el, enqu^ete
?>
I can't find any documentation which mentions this problem, so if one of you might know a
solution...
----
Server IP: 69.147.83.197
Probable Submitter: 87.213.211.84
----
Manual Page -- http://www.php.net/manual/en/function.iconv.php
Edit -- https://master.php.net/note/edit/98448
Del: integrated -- https://master.php.net/note/delete/98448/integrated
Del: useless -- https://master.php.net/note/delete/98448/useless
Del: bad code -- https://master.php.net/note/delete/98448/bad+code
Del: spam -- https://master.php.net/note/delete/98448/spam
Del: non-english -- https://master.php.net/note/delete/98448/non-english
Del: in docs -- https://master.php.net/note/delete/98448/in+docs
Del: other reasons-- https://master.php.net/note/delete/98448
Reject -- https://master.php.net/note/reject/98448
Search -- https://master.php.net/manage/user-notes.php