111
utF-8 For PHP And mysQl
UTF-8 Configuration PHPUnit Testing
Below are several methods that can be used to test and confirm the UTF-8 configura-
tion settings of an application. e points to confirm are that the database is set up
correctly to store and retrieve UTF-8 characters, that PHP internally is set to correctly
parse UTF-8 strings, and finally that application output is UTF-8 encoded.
e database testing has two parts: testing the connection parameters, the reported
database setup, and storing and retrieving Unicode characters. e purpose is to verify
that input is not altered throughout the entire storage and retrieval process. is can
happen if at any point the character sets specified in the connection or storage setup,
either implicit ...