PHP utf8_decode() Function
Example
Decode a UTF-8 string to ISO-8859-1:
<?php
$text = "\xE0";
echo utf8_encode($text) ."<br>";
echo
utf8_decode($text);
?>
Try it Yourself »
Definition and Usage
The utf8_decode() function decodes a UTF-8 string to ISO-8859-1.
This function decodes a string, previously encoded with the utf8_encode() function, back to ISO-8859-1.
Syntax
utf8_decode(string)
Parameter Values
Parameter | Description |
---|---|
string | Required. Specifies a UTF-8 encoded string to decode |
Technical Details
Return Value: | The decoded string on success. FALSE on failure |
---|---|
PHP Version: | 4.0+ |
❮ PHP XML Parser Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.