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

search for in the

i18n_loc_get_default> <token_name
[edit] Last updated: Mon, 01 Nov 2010

view this page in

CLXV. Unicode Functions

Einführung

Unicode Support.

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

Anforderungen

» ICU 3.4 or later is required.

Installation

First you should download and install ICU:

Beispiel 2176. 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.

Laufzeit Konfiguration

Das Verhalten dieser Funktionen wird durch Einstellungen in der php.ini beeinflusst.

Tabelle 279. Unicode Configuration Options

NameDefaultChangeableChangelog
unicode.fallback_encodingNULLPHP_INI_ALLAvailable since PHP 6.0.0.
unicode.from_error_mode"2"PHP_INI_ALLAvailable since PHP 6.0.0.
unicode.from_error_subst_char"3f"PHP_INI_ALLAvailable since PHP 6.0.0.
unicode.http_input_encodingNULLPHP_INI_ALLAvailable since PHP 6.0.0.
unicode.output_encodingNULLPHP_INI_ALLAvailable since PHP 6.0.0.
unicode.runtime_encodingNULLPHP_INI_ALLAvailable since PHP 6.0.0.
unicode.script_encodingNULLPHP_INI_ALLAvailable since PHP 6.0.0.
unicode.semanticsoffPHP_INI_PERDIRAvailable since PHP 6.0.0.

Weitere Details und die Definitionen der PHP_INI_*-Konstanten finden Sie im Anhang G, php.ini Einstellungen.

Hier eine kurze Erklärung der Konfigurationsoptionen:

unicode.output_encoding string

Default encoding for output.

Vordefinierte Konstanten

Folgende Konstanten werden von dieser Erweiterung definiert und stehen nur zur Verfügung, wenn die Erweiterung entweder statisch in PHP kompiliert oder dynamisch zur Laufzeit geladen wurde.

Tabelle 280.

constantvaluedescription
U_INVALID_STOP0stop at first invalid character
U_INVALID_SKIP1skip invalid characters
U_INVALID_SUBSTITUTE2replace invalid characters
U_INVALID_ESCAPE3escape invalid characters

Inhaltsverzeichnis

i18n_loc_get_default — Get the default Locale
i18n_loc_set_default — Set the default Locale
unicode_encode — Set encoding of a unicode string
unicode_semantics — Check whether unicode semantics is enabled


add a note add a note User Contributed Notes Unicode Functions
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites