PHP sapi_windows_cp_get() Function
The PHP sapi_windows_cp_get() function is used to get the current codepage.
Syntax
sapi_windows_cp_get(kind)
Parameters
kind |
Optional. Specify the kind of operating system codepage to get, either 'ansi' or 'oem'. Any other value refers to the current codepage of the process. |
Return Value
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.
❮ PHP Miscellaneous Reference