pkgsrc-Users archive

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

Re: PHP, iconv() and www/moodle



Hi,

In message 
<Pine.NEB.4.64.1202021216330.29773%ugly.internal.precedence.co.uk@localhost>
        on Thu, 2 Feb 2012 13:59:18 +0000 (GMT),
        Stephen Borrill <netbsd%precedence.co.uk@localhost> 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
with:

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 <taca%back-street.net@localhost>


Home | Main Index | Thread Index | Old Index