PHP » PYTHON |
login |
register |
about
|
PYTHON unicode_decode
is this article helpful?
|
Python replacement for PHP's unicode_decode
[
edit
| history
]
Python 2.x:
'\xd7\x90'.decode('utf-8') Python 3.x: b'\xd7\x90'.decode('utf-8') unicode_decode(PHP 6 >= 6.0.0) unicode_decode — Convert a binary string into a Unicode string Description
unicode unicode_decode
( string $input
, string $encoding
[, int $errmode
] )
Convert a binary string encoded in encoding to a unicode string. Parameters
Return ValuesA unicode string or FALSE on failure. Errors/ExceptionsEmits a E_WARNING level error if a converter cannot be created for the desired encoding . NotesWarning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|