note 86077 added to function.iconv

From: Date: Thu, 02 Oct 2008 06:10:31 +0000
Subject: note 86077 added to function.iconv
Groups: php.notes 
Request: Send a blank email to php-notes+get-144966@lists.php.net to get a copy of this message
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

« previous php.notes (#144966) next »