pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PHP, iconv() and www/moodle


In message 
        on Thu, 2 Feb 2012 13:59:18 +0000 (GMT),
        Stephen Borrill <> wrote:
> I'm trying to install Moodle 2.2.x (not from pkgsrc), but it fails
> because iconv() is deemed to be not working.
> echo  "<?php echo iconv('UTF-8', 'UTF-8//IGNORE', 'abc'); ?>" | php
Use of "//IGNORE" is GNU iconv (and GNU libc) *own extension* and so
other implementation which dosen't support it will cause error.

The right solution is fix PHP code to be care for '//ignore' and
'//translit' cause error and other way to do.

RoundCube web mail server and Contao Open Source CMS handles such case

o Handle error by '//ignore' or '//translit' and other way.
o Prefer use of mbstring if available.

Interim solution, build php-iconv with converters/libiconv, but
I don't know it really works well.

Takahiro Kambe <>

Home | Main Index | Thread Index | Old Index