[OpenIndiana-discuss] php iconv //TRANSLIT error

gerard henry solarg87 at gmail.com
Wed May 4 12:53:32 UTC 2011


hello,
the problem is present in b134 opensolaris as well, with apache and php from
SUNW.

gerard

2011/4/28 Gary Gendel <gary at genashor.com>

> I'm trying to get z-push running and I have run into what seems to be a bug
> in oi_148 (dev_il).
>
> After looking at this in detail, it looks like the iconv call is failing. I
> put together a simple testcase:
>
> <?php
> echo iconv("ISO-8859-1", "UTF-8", "This is a test")
> ?>
>
> This displays "This is a test" in the browser as expected.
>
> However,
>
> <?php
> echo iconv("ISO-8859-1", "UTF-8"//TRANSLIT, "This is a test")
> ?>
>
> fails, (as does using //IGNORE instead of //TRANSLIT).  Syslog reports:
>
> PHP Notice:  iconv()[<a href='function.iconv'>function.iconv</a>]: Unknown
> error (22) in /usr/local/apache2/htdocs/tstphp1.php on line 2
>
> Googling seems to point to a problem with the OpenIndiana iconv library.
>  Should we be including giconv and binding with this from php or replacing
> iconv with giconv?
>
> Gary
>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>


More information about the OpenIndiana-discuss mailing list