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.
Return值
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的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。