sapi_windows_cp_conv

(PHP 7 >= 7.1.0)

sapi_windows_cp_convConvert 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.

锟轿硷拷

  • sapi_windows_cp_get() - Get process codepage
  • iconv() - 锟街凤拷锟斤拷锟斤拷要锟斤拷锟斤拷址锟斤拷锟斤拷锟斤拷锟阶拷锟�