utf8_encode
Encoding ISO-8859-1 string to UTF-8
utf8_encode()
function converts ISO-8859-1 encoded strings into UTF-8 encoded.
Unicode is a common standard designed to provide unique numbers for characters and a large number of symbols in all languages to describe all possible characters and symbols.
However, it is not always possible to reliably transfer Unicode characters to another computer. UTF-8 was developed to transfer Unicode characters between different computers.
Encode the ISO-8859-1 string to UTF-8:
<?php $text = "\xE0" ; echo utf8_encode ( $text ) ; ?>
Try it yourself
utf8_encode ( string )
parameter | describe |
---|---|
string | Required. Specifies the ISO-8859-1 string to encode. |