The utf8_encode() function encodes ISO-8859-1 strings into UTF-8.
Unicode is a global standard that has been developed to describe all possible characters in all languages with a unique encoding for each character/symbol plus a large number of symbols.
However, it is not always possible to reliably transfer Unicode characters between computers. UTF-8 can be used to transfer Unicode characters between computers.
If successful, the function returns the encoded string. If it fails, returns FALSE.
utf8_encode(string)
parameter | describe |
---|---|
string | Required. Specifies the string to be encoded. |