utf8_encode -- Encodes an ISO-8859-1 string to UTF-8
Syntax
string utf8_encode ( string data )
This function encodes the string data to
UTF-8, and returns the encoded version.
UTF-8 is a standard mechanism used by
Unicode for encoding wide
character values into a byte stream.
UTF-8 is transparent to plain ASCII
characters, is self-synchronized (meaning it is possible for a program to
figure out where in the bytestream characters start) and can be used with
normal string comparison functions for sorting and such. PHP encodes
UTF-8 characters in up to four bytes, like this:
Table 1. 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.
Php utf8 encode Function syntax tag
utf8 encode php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php utf8 encode syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.