PHP - Manual: sapi_windows_cp_get
2024-11-14
(PHP 7 >= 7.1.0, PHP 8)
sapi_windows_cp_get — Get current codepage
$kind
= ""): intGets the current codepage.
kind
The kind of operating system codepage to get,
either 'ansi'
or 'oem'
.
Any other value refers to the current codepage of the process.
If kind
is 'ansi'
,
the current ANSI code page of the operating system is returned.
If kind
is 'oem'
,
the current OEM code page of the operating system is returned.
Otherwise, the current codepage of the process is returned.
官方地址:https://www.php.net/manual/en/function.sapi-windows-cp-get.php