Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002255 [Quercus] minor always 12-13-07 23:14 09-16-08 18:08
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 3.1.4
Summary 0002255: iconv() doesn't support target encoding modifier
Description <?php
print iconv("ISO-8859-1", "UTF-8//IGNORE", "xyz") . "\n";

Vanilla PHP prints "xyz". Quercus throws an exception saying "UTF-8//IGNORE" is an unknown encoding, which is true; iconv() is supposed to accept "//IGNORE" at the end of the target encoding to silently discard characters that can't be represented in the target character set. I assume the //TRANSLIT suffix is not implemented either (but we don't use that one.)
Additional Information
Attached Files

- Relationships

- Notes
(0002571)
koreth
12-13-07 23:17

Oh, by the way, our actual use case for this:

    return iconv('UTF-8', 'UTF-8//IGNORE', $text);

On vanilla PHP, this will strip out invalid UTF-8 sequences from a string.
 
(0003448)
nam
09-16-08 18:08

php/453[h-l]

IGNORE implemented but TRANSLIT is still not implemented.
 

- Issue History
Date Modified Username Field Change
12-13-07 23:14 koreth New Issue
12-13-07 23:17 koreth Note Added: 0002571
08-22-08 16:21 nam Status new => assigned
08-22-08 16:21 nam Assigned To  => nam
09-16-08 18:08 nam Status assigned => closed
09-16-08 18:08 nam Note Added: 0003448
09-16-08 18:08 nam Resolution open => fixed
09-16-08 18:08 nam Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker