English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP Basic Tutorial

PHP Advanced Tutorial

PHP & MySQL

PHP Reference Manual

PHP utf8_encode() Function Usage and Example

PHP XML Function Manual

utf8_encode() function is used to convert ISO-8859-1 Convert the encoded string to UTF-8 Encoding.

Syntax

string utf8_encode ( string $data )

Definition and usage

This function converts the data string to UTF-8 Encode and return the encoded string.

Return value

If successful, the function returns the encoded string. If failed, it returns FALSE.

Parameter

Serial numberParameters and descriptions
1

data

Required. Specify the string to be encoded.

PHP XML Function Manual