[CentOS] UTF-8 support in PCRE

Mon Jul 7 19:57:20 UTC 2008
Amitava Shee <amitava.shee at gmail.com>

My error log with iconv is misleading. Please ignore that portion and
instead use this little php script to check for utf-8 support in pcre


<?php
> if (@preg_match('/\pL/u', 'a') == 1) {
>     echo "PCRE unicode support is turned on.\n";
> } else {
>     echo "PCRE unicode support is turned off.\n";
> }
>
> ?>
>

Also, please check out this thread (lack of pcre utf8 support in RHEL).

http://marc.info/?l=php-i18n&m=118303425505336&w=2

-Amitava


On Mon, Jul 7, 2008 at 10:45 AM, Jim Perrin <jperrin at gmail.com> wrote:

> On Mon, Jul 7, 2008 at 10:36 AM, Amitava Shee <amitava.shee at gmail.com>
> wrote:
> > Yes, building from source will work. I just want to know if there is a
> > package (in some yum repository) somewhere so that updates, patches etc.
> > gets applied with "yum update". It would be nice to do something like
> >
> > yum install pcre-utf8
>
> Okay, there's a disconnect, somewhere which you aren't getting.
>
> The pcre package included in centos does UTF8 just fine. The problem
> you are seeing is related to another package. You need to look at the
> script to see what iconv (where the problem actually is) is having
> problems with.
>
> --
> During times of universal deceit, telling the truth becomes a revolutionary
> act.
> George Orwell
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080707/b53a2b0e/attachment-0005.html>