CLVII. Unicode Functions
Wstęp
Unicode Support.
| Ostrzeżenie |
This extension is still in development and it isn't available to public yet. |
Instalacja
First you should download and install ICU:
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.
Konfiguracja czasu wykonywania
Na działanie tych funcji wpływają ustawienia zawarte w pliku php.ini.
Tabela 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. |
Oto krótkie wyjaśnienie dyrektyw konfiguracji.
- unicode.output_encoding string
Default encoding for output.
Stałe predefinopwane
Poniższe stałe są zdefiniowane w tym rozszerzeniu i stają się dostępne, gdy rozszerzenie jest dokompilowane do PHP, lub załadowane dynamicznie przy starcie.
- Spis treści
- i18n_loc_get_default -- Get the default Locale
- i18n_loc_set_default -- Set the default Locale
- unicode_encode -- Takes a unicode string and converts it to a string in the specified encoding
- unicode_semantics -- Check whether unicode semantics is enabled
There are no user contributed notes for this page.
