sapi_windows_cp_conv
(PHP 7 >= 7.1.0)
sapi_windows_cp_conv — Convert string from one codepage to another
説明
sapi_windows_cp_conv
( int|string
$in_codepage
, int|string $out_codepage
, string $subject
) : stringConvert string from one codepage to another.
パラメータ
-
in_codepage -
The codepage of the
subjectstring. Either the codepage name or identifier. -
out_codepage -
The codepage to convert the
subjectstring to. Either the codepage name or identifier. -
subject -
The string to convert.
返り値
The subject string converted to
out_codepage, or NULL on failure.
エラー / 例外
This function issues E_WARNING level errors, if invalid codepages are given,
or if the subject is not valid for in_codepage.
参考
- sapi_windows_cp_get() - Get process codepage
- iconv() - 文字列を指定した文字エンコーディングに変換する