PYTHON utf8_decode

is this article helpful?
Python replacement for PHP's utf8_decode [ edit | history ]
utf8_decode = lambda t: unicode(t).decode()

PHP utf8_decode

PHP original manual for utf8_decode [ show | ]


(PHP 4, PHP 5)

utf8_decode Converts a string with ISO-8859-1 characters encoded with UTF-8 to single-byte ISO-8859-1


string utf8_decode ( string $data )

This function decodes data , assumed to be UTF-8 encoded, to ISO-8859-1.



An UTF-8 encoded string.

Return Values

Returns the ISO-8859-1 translation of data .

See Also

  • utf8_encode() - Encodes an ISO-8859-1 string to UTF-8 for an explanation of UTF-8 encoding