ID:               20809
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

 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

Reply via email to