utf8_encode
(PHP 4, PHP 5)
utf8_encode — Encodes an ISO-8859-1 string to UTF-8
Описание
string utf8_encode
( string $data
)
UTF-8 encoding
bytes |
bits |
representation |
1 |
7 |
0bbbbbbb |
2 |
11 |
110bbbbb 10bbbbbb |
3 |
16 |
1110bbbb 10bbbbbb 10bbbbbb |
4 |
21 |
11110bbb 10bbbbbb 10bbbbbb 10bbbbbb |
Each b represents a bit that can be
used to store character data.
Список параметров
-
data
-
An ISO-8859-1 string.
Возвращаемые значения
Returns the UTF-8 translation of data
.