sapi_windows_cp_is_utf8
Indicates whether the code page is compatible with UTF-8
Function name: sapi_windows_cp_is_utf8()
Function Description: This function is used to check whether the code page of the current Windows system is UTF-8 encoded.
Applicable version: PHP 5.4.0 and above
Usage: bool sapi_windows_cp_is_utf8()
Return value: Return true if the code page of the current Windows system is UTF-8 encoded; otherwise, return false.
Example:
// 检查当前Windows 系统的代码页是否为UTF-8 编码if (sapi_windows_cp_is_utf8()) { echo "当前系统的代码页为UTF-8 编码"; } else { echo "当前系统的代码页不是UTF-8 编码"; }
Notes: