sapi_windows_cp_conv
(PHP 7 >= 7.1.0, PHP 8)
sapi_windows_cp_conv — Convert string from one codepage to another
Beschreibung
$in_codepage, int|string $out_codepage, string $subject): ?stringConvert string from one codepage to another.
Parameter-Liste
-
in_codepage -
The codepage of the
subjectstring. Either the codepage name or identifier. -
out_codepage -
The codepage to convert the
subjectstring to. Either the codepage name or identifier. -
subject -
The string to convert.
Rückgabewerte
The subject string converted to
out_codepage, or null on failure.
Fehler/Exceptions
This function issues E_WARNING level errors, if invalid codepages are given,
or if the subject is not valid for in_codepage.
Siehe auch
- sapi_windows_cp_get() - Get current codepage
- iconv() - Konvertiert eine Zeichenkette von einem Zeichensatz in einen anderen

