It has recently come to my attention that I should be more diligent on consistent encoding. Below are several examples where I am specifying utf8 encoding. Please confirm that I am doing them correctly and fill in the blanks, and indicate which other scopes require encoding to be specified. Thank you
Set encoding when connecting to the database
Set encoding for HTMLCode:$db = new PDO( "mysql:host=localhost;dbname=myDB;charset=utf8", 'myUserName', 'myPassword', array( PDO::ATTR_EMULATE_PREPARES=>false, PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE=>PDO::FETCH_ASSOC ) );
Save files as utf8Code:<meta charset="utf-8" />
Specifying utf8 in the pdo callCode:???
Code:???