note 86077 added to function.iconv

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
If you are getting question-marks in your iconv output when transliterating, be sure to 'setlocale' to something your system supports.

Some PHP CMS's will default setlocale to 'C', this can be a problem.

use the "locale" command to find out a list..

$ locale -a
C
en_AU.utf8
POSIX

<?php
  setlocale(LC_CTYPE, 'en_AU.utf8');
  $str = iconv('UTF-8', 'ASCII//TRANSLIT', "Côte d'Ivoire");
?>
----
Server IP: 117.104.160.194
Probable Submitter: 203.166.32.205
----
Manual Page -- http://www.php.net/manual/en/function.iconv.php
Edit        -- https://master.php.net/note/edit/86077
Del: integrated  -- https://master.php.net/note/delete/86077/integrated
Del: useless     -- https://master.php.net/note/delete/86077/useless
Del: bad code    -- https://master.php.net/note/delete/86077/bad+code
Del: spam        -- https://master.php.net/note/delete/86077/spam
Del: non-english -- https://master.php.net/note/delete/86077/non-english
Del: in docs     -- https://master.php.net/note/delete/86077/in+docs
Del: other reasons-- https://master.php.net/note/delete/86077
Reject      -- https://master.php.net/note/reject/86077
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.