Current Location: Home> Function Categories> utf8_encode

utf8_encode

Encoding ISO-8859-1 string to UTF-8
Name:utf8_encode
Category:XML parser
Programming Language:php
One-line Description:Encode the ISO-8859-1 string to UTF-8.

Definition and usage

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.

Example

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

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

Try it yourself

grammar

 utf8_encode ( string )
parameter describe
string Required. Specifies the ISO-8859-1 string to encode.
Similar Functions
Popular Articles