./configure --disable-threads --enable-extras --enable-icuio --enable-layout
make && make install
Then checkout latest PHP and configure it --with-icu-dir=<dir> option, where
<dir> was the dir to where you installed ICU. You don't need to
explicitly use this option if you install ICU to a standard location.
Runtime Configuration
The behaviour of these functions is affected by settings in php.ini.
Here's a short explanation of
the configuration directives.
unicode.output_encodingstring
Default encoding for output.
Predefined Constants
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
Table 326.
constant
value
description
U_INVALID_STOP
0
stop at first invalid character
U_INVALID_SKIP
1
skip invalid characters
U_INVALID_SUBSTITUTE
2
replace invalid characters
U_INVALID_ESCAPE
3
escape invalid characters
Table of Contents
unicode_decode — Convert a binary string into a Unicode string
unicode_encode — Convert a unicode string in any encoding
If you are really interested in PHP 6 and its Unicode support you should read: http://www.zend.com/zend/week/php-unicode-design.txt
(and in general http://www.zend.com/zend/week/)
plus cvs/php6/README.UNICODE and cvs/php6/README.UNICODE-UPGRADES
After you compile PHP 6, make sure that you have enabled unicode_semantics = on in php.ini (an old PHP 5 configuration file will not do as it does not provide those new Unicode-related options).