GoLang sapi_windows_cp_conv

request it (312)
GoLang replacement for PHP's sapi_windows_cp_conv [edit | history]



Do you know a GoLang replacement for PHP's sapi_windows_cp_conv? Write it!

PHP sapi_windows_cp_conv

PHP original manual for sapi_windows_cp_conv [ show | php.net ]

sapi_windows_cp_conv

(PHP 7 >= 7.1.0)

sapi_windows_cp_convConvert string from one codepage to another

Description

string sapi_windows_cp_conv ( int|string $in_codepage , int|string $out_codepage , string $subject )

Convert string from one codepage to another.

Parameters

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.

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