Current Location: Home> Function Categories> utf8_decode

utf8_decode

Convert ISO-8859-1 characters encoded with UTF-8 to single-byte ISO-8859-1
Name:utf8_decode
Category:XML parser
Programming Language:php
One-line Description:Decode the UTF-8 string to ISO-8859-1.

Definition and usage

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.

Example

Decode the UTF-8 string to ISO-8859-1:

 <?php
$text = "\xE0" ;
echo utf8_encode ( $text ) . "<br>" ;
echo utf8_decode ( $text ) ;
?>

Try it yourself

grammar

 utf8_decode ( string )
parameter describe
string Required. Specifies the UTF-8 encoded string to decode.
Similar Functions
Popular Articles