PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

unicode_decode> <token_name
Last updated: Tue, 27 Nov 2007

view this page in

Unicode Functions

Introducción

Unicode Support.

Warning

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

Requisitos

» ICU 3.4 or later is required.

Instalación

First you should download and install ICU:

Example#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.

Configuración en tiempo de ejecución

El comportamiento de estas funciones está afectado por los valores definidos en php.ini.

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 "0" PHP_INI_SYSTEM Available since PHP 6.0.0.
For further details and definitions of the PHP_INI_* constants, see the Directivas de php.ini.

A continuación se presenta una corta explicación de las directivas de configuración.

unicode.output_encoding string

Default encoding for output.

Constantes predefinidas

Estas constantes están definidas por esta extensión y estarán disponibles solamente cuando la extensión ha sido o bien compilada dentro de PHP o grabada dinámicamente en tiempo de ejecución.

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



add a note add a note User Contributed Notes
Unicode
Hugo Dworak (post at o2 dot pl)
23-Nov-2005 05:04
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).

unicode_decode> <token_name
Last updated: Tue, 27 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites