101
6
utf-8 for pHp And MySQl
Why UTF-8
A Unicode character set is now a required infrastructure element in order to support
a global application with global languages. e traditional ANSI character set does
not support the multi-byte character sets outside of the Latin languages, such as the
Chinese, Russian, and Japanese languages.
UTF-8 is used for several reasons. It is Unicode and is usually able to handle all known
characters with the best storage efficiency. With proper setup, UTF-8 is well supported
in PHP and MySQL. Finally, OWASP recommends it from a security standpoint.
eUTF-8 specification has both advantages and disadvantages. ese are listed below.
UTF-8 Advantages
• UTF-8 is defined with only one right way to encode each character