PHP Velho Oeste 2024

실행시 설정

이 함수의 작동은 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부터 사용할 수 있습니다.

위 설정 지시어에 대한 간단한 설명입니다.

Warning

몇몇 시스템(IBM AIX 등)은 "ISO-8859-1" 대신에 "ISO8859-1"을 사용하기에, 이 값을 설정 옵션과 함수 인수로 사용합니다.

iconv.input_encoding string

현재 이 옵션은 사용되지 않습니다.

iconv.output_encoding string

iconv.internal_encoding string

add a note add a note

User Contributed Notes 1 note

up
-4
Justin
15 years ago
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.
To Top