(PHP 4, PHP 5, PHP 7)
utf8_decode — UTF-8 エンコードされた ISO-8859-1 文字列をシングルバイトの ISO-8859-1 に変換する
$data
) : string
この関数は、文字列 data
を UTF-8
エンコードから ISO-8859-1 へ変換します。
Bytes in the string which are not valid UTF-8, and
UTF-8 characters which do not exist in
ISO-8859-1 (that is, characters above
U+00FF) are replaced with ?.
注意:
Many web pages marked as using the ISO-8859-1 character encoding actually use the similar Windows-1252 encoding, and web browsers will interpret ISO-8859-1 web pages as Windows-1252. Windows-1252 features additional printable characters, such as the Euro sign (?) and curly quotes (“ ”), instead of certain ISO-8859-1 control characters. This function will not convert such Windows-1252 characters correctly. Use a different function if Windows-1252 conversion is required.
data
UTF-8 エンコードされた文字列。
data
を ISO-8859-1 に変換した結果を返します。