sapi_windows_cp_conv
(PHP 7 >= 7.1.0, PHP 8)
sapi_windows_cp_conv — Convert string from one codepage to another
说明
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 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 current codepage
- iconv() - 将字符串从一个字符编码转换到另一个字符编码
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/function.sapi-windows-cp-conv.php