CXLVII. Unicode Functions

简介

Unicode Support.

警告

This extension is still in development and it isn't available to public yet.

需求

ICU 3.4 or later is required.

安装

First you should download and install ICU:

例子 1. install ICU on Unix

./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.

目录
unicode_encode -- Takes a unicode string and converts it to a string in the specified encoding