sapi_windows_cp_conv()
(PHP 7 >= 7.1.0)
Convert string from one codepage to another
说明
sapi_windows_cp_conv(int|string$in_codepage,int|string$out_codepage,string $subject): string
Convert 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$subjectstring converted to$out_codepage,orNULL
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 codepageiconv()
字符串按要求的字符编码来转换