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

search for in the

リソース型> <インストール手順
Last updated: Fri, 13 Nov 2009

view this page in

実行時設定

php.ini の設定により動作が変化します。

Iconv 設定オプション
名前 デフォルト 変更の可否 変更履歴
iconv.input_encoding "ISO-8859-1" PHP_INI_ALL PHP 4.0.5 以降で使用可能です。
iconv.output_encoding "ISO-8859-1" PHP_INI_ALL PHP 4.0.5 以降で使用可能です。
iconv.internal_encoding "ISO-8859-1" PHP_INI_ALL PHP 4.0.5 以降で使用可能です。

PHP_INI_* モードの詳細および定義については どこで設定を行うのか を参照してください。

警告

(IBM AIX のように)いくつかのシステムでは "ISO-8859-1" ではなく "ISO8859-1" を使用することがあります。そのような場合は、設定オプションや 関数のパラメータにはこの値を使用しなければなりません。

注意: 設定オプション iconv.input_encoding は、 今のところ一切利用されていません。



add a note add a note User Contributed Notes
実行時設定
Justin
17-Mar-2009 05: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.

リソース型> <インストール手順
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites