Roland Liebl wrote:
> OK this fails:
> 
> <?php
> if(!iconv("UTF-8", "UTF8//IGNORE", '123€123')){
>   echo "failure";
> }
> else{
>  echo "success";
> }

I don't know why, but we have:

if (function_exists('iconv'))
     return iconv('UTF8', 'UTF8//IGNORE', $input);

So, I think we could handle this issue with:

if (function_exists('iconv') && ($result = iconv('UTF8', 'UTF8//IGNORE', 
$input)))
     return $result;

-- 
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to