System requirements for UTF-8 support

Hello,

I want to try to setup a server with UTF-8 support, but the Oxid-Requirements shows only the UTF-8 support in orange. Mbstring is green.

PHP core: default_careset: utf-8
Apache Environment: HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7

What is the problem or missing?

best regards
Frank

Hi Frank,

I have got this further entries on my server:

PHP Variables: _SERVER[“HTTP_ACCEPT_CHARSET”] ISO-8859-1,utf-8;q=0.7,;q=0.7
HTTP Headers Information: Accept-Charset ISO-8859-1,utf-8;q=0.7,
;q=0.7

rgds

Hi Marco,

in which config file (php.ini oder httpd.conf) are they set?

thanks,
Frank

Hi,

I think in both :slight_smile:
PHP Variables: _SERVER[“HTTP_ACCEPT_CHARSET”] in php.ini and
Accept-Charset in httpd.conf

rgds

Looking at the source i would suggest PCRE Unicode support is missing.

The support isn’t influenced by PHP, rather it depends on how the PCRE library was compiled that PHP is compiled against. A lot of older systems have PCRE compiled without Unicode support (for reasons known only to themselves).

Where the support is not available, you may need to compile the PCRE library correctly and run a new PHP version compile off that. Perhaps your system has a corrected update available from an update repo?

http://n4.nabble.com/Enable-preg-match-unicode-support-td656327.html#a656327

@ Marco: this variables are set correctly.

@ leofinic: your idea was the right inspiration:

$ pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
  UTF-8 support
  No Unicode properties support
  Newline character is LF
  Internal link size = 2
  POSIX malloc threshold = 10
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack

The problem is: [B]No Unicode properties support[/B]

I’m using CentOS 5.4 and pcre was configured without unicode support. Using the source rpm-files and configured with unicode support fixed the problem:

$ pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
  UTF-8 support
  Unicode properties support
  Newline character is LF
  Internal link size = 2
  POSIX malloc threshold = 10
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack

If somebody have the same problems, a howto would be find here:
http://gaarai.com/2009/01/31/unicode-support-on-centos-52-with-php-and-pcre/

The oxid shop requirements fur UTF-8 support is after restarting Apache now [B]green[/B]

best regards and thanks for support

Frank