utf8_decode
Convert ISO-8859-1 characters encoded with UTF-8 to single-byte ISO-8859-1
The utf8_decode()
function decodes the UTF-8 encoded string to ISO-8859-1.
This function decodes the string previously encoded with the utf8_encode() function back to ISO-8859-1.
Decode the UTF-8 string to ISO-8859-1:
<?php $text = "\xE0" ; echo utf8_encode ( $text ) . "<br>" ; echo utf8_decode ( $text ) ; ?>
Try it yourself
utf8_decode ( string )
parameter | describe |
---|---|
string | Required. Specifies the UTF-8 encoded string to decode. |