#20809 [Opn->Csd]: iconv() options

From: Date: Thu, 05 Dec 2002 05:43:32 +0000
Subject: #20809 [Opn->Csd]: iconv() options
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26703@lists.php.net to get a copy of this message
ID: 20809 Updated by: moriyoshi@php.net Reported By: flying@dom.natm.ru -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: All PHP Version: 4.3.0RC2 New Comment: You can achieve that by appending "//IGNORE" after the codeset name to which the string is going to be converted. For example: <?php $bar = iconv("UTF-8", "KOI-8R//IGNORE", $foo); ?> Note that this is not portable since most of the iconv implementations don't support it. As far as I know, only glibc's iconv can handle this. Previous Comments: ------------------------------------------------------------------------ [2002-12-04 08:16:39] flying@dom.natm.ru It will be very useful to have support for -c and -s options available for iconv command-line tool as optional arguments for iconv() function. And also it will be specially useful for XML related code to have an option to convert all unconvertable characters into numeric entities. Thank you all for your job! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20809&edit=1

« previous php.bugs (#26703) next »