PHP ��U
前一頁 |  | 下一頁

# CLX. Unicode Functions

# ��

Unicode Support.

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

# �ݨD

ICU 3.4 or later is required.

# �w��

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.

# ���ɴ�պA

`php.ini`�]�w�|�v�T�o�Ǩ�ƪ�欰�C

表格 1. Unicode Configuration Options

Name | Default | Changeable | Changelog
--- | --- | --- | ---
unicode.fallback_encoding | NULL | PHP_INI_ALL | Available since PHP 6.0.0.
unicode.from_error_mode | "2" | PHP_INI_ALL | Available since PHP 6.0.0.
unicode.from_error_subst_char | "3f" | PHP_INI_ALL | Available since PHP 6.0.0.
unicode.http_input_encoding | NULL | PHP_INI_ALL | Available since PHP 6.0.0.
unicode.output_encoding | NULL | PHP_INI_ALL | Available since PHP 6.0.0.
unicode.runtime_encoding | NULL | PHP_INI_ALL | Available since PHP 6.0.0.
unicode.script_encoding | NULL | PHP_INI_ALL | Available since PHP 6.0.0.
unicode.semantics | off | PHP_INI_PERDIR | Available since PHP 6.0.0.

For further details and definitions of the PHP_INI_* constants, see the 附錄 G.

�o�̬�²�u�c��O��C

unicode.output_encoding string

  Default encoding for output.

# �w��w�q�`��

�H�U�`�ƥѦ��w�q�A�u�b�o�ө��Q�sĶ�PHP�ι��ɴ�Q�ʺA��J�ɦ�ġC

表格 2.

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

前一頁 | 內容 | 下一頁
token_name | 上一層 | i18n_loc_get_default