(PHP 7 >= 7.1.0)
sapi_windows_cp_conv — 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 subject
string. Either the codepage name or identifier.
out_codepage
The codepage to convert the subject
string 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
.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.sapi-windows-cp-conv.php