Forum und email

iconv

(PHP 4 >= 4.0.5, PHP 5)

iconv — 원하는 문자 인코딩으로 변환한다

Description

string iconv ( string $in_charset , string $out_charset , string $str )

in_charset 으로 인코드된 stringout_charset 으로 인코딩된 string으로 변환한다. 변환된 문자열을 리턴하거나, 실패하면 FALSE을 리턴한다.

Example#1 iconv() example:

echo iconv("ISO-8859-1","UTF-8","This is test.");