Unicode
PHP Manual

unicode_decode

(No version information available, might be only in CVS)

unicode_decode — Convert a binary string into a Unicode string

说明

unicode unicode_decode ( string $input , string $encoding [, int $errmode ] )

Convert a binary string encoded in encoding to a unicode string.

参数

input

Try string that is converted.

encoding

The encoding of input .

errmode

Conversion error mode. This parameter determines the action to take when the converter cannot convert a character. For a list of available modes, refer to unicode_set_error_mode(). If the parameter is not set, the global error mode is used.

返回值

A unicode string or FALSE on failure.

错误/异常

Emits a E_WARNING level error if a converter cannot be created for the desired encoding .

注释

Warning

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

参见


Unicode
PHP Manual