sapi_windows_cp_conv
(PHP 7 >= 7.1.0, PHP 8)
sapi_windows_cp_conv — Convert string from one codepage to another
Description
Convert string from one codepage to another.
Parameters
in_codepageThe codepage of the
subjectstring. Either the codepage name or identifier.out_codepageThe codepage to convert the
subjectstring to. Either the codepage name or identifier.subjectThe string to convert.
Return Values
The subject string converted to out_codepage, or null on failure.
Errors/Exceptions
This function issues E_WARNING level errors, if invalid codepages are given, or if the subject is not valid for in_codepage.
See Also
- sapi_windows_cp_get() - Get current codepage
- iconv() - Convert a string from one character encoding to another
↑ and ↓ to navigate • Enter to select • Esc to close • / to open