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

search for in the

Types de ressources> <Installation
[edit] Last updated: Fri, 10 Feb 2012

view this page in

Configuration à l'exécution

Le comportement de ces fonctions est affecté par la configuration dans le fichier php.ini.

Options de configuration iconv
Nom Défaut Modifiable Historique
iconv.input_encoding "ISO-8859-1" PHP_INI_ALL Disponible depuis PHP 4.0.5.
iconv.output_encoding "ISO-8859-1" PHP_INI_ALL Disponible depuis PHP 4.0.5.
iconv.internal_encoding "ISO-8859-1" PHP_INI_ALL Disponible depuis PHP 4.0.5.

Voici un éclaircissement sur l'utilisation des directives de configuration.

Avertissement

Quelques systèmes (comme IBM AIX) utilisent "ISO8859-1" au lieu de "ISO-8859-1", cette valeur doit donc être utilisée dans les options de configuration ainsi que dans les paramètres des fonctions.

iconv.input_encoding string

Actuellement, cette option n'est pas utilisée.

iconv.output_encoding string

iconv.internal_encoding string



add a note add a note User Contributed Notes Configuration à l'exécution
Justin 17-Mar-2009 10:56
Many people report problems compiling PHP on Leopard due to a libiconv issue.

This may be due to the small C test programme in ./configure.
It calls open_conv with two const * char arguments (correct), but these are NOT valid charsets to iconv. This then breaks ./configure.

AFAIK from the libiconv documentation, the PHP configure call is incorrect: this function expects two valid charset arguments. (You can see a list of valid arguments by running iconv -l).

Changing the call to:

cd = open_conv("UTF-8","ISO-8859-1")

returns a valid iconv_t number (non-negative), and configure can then continue setting up for your Makefile compile.

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