diff --git a/reference/pdo_mysql/reference.xml b/reference/pdo_mysql/reference.xml index 2925b6082f..657e90c707 100644 --- a/reference/pdo_mysql/reference.xml +++ b/reference/pdo_mysql/reference.xml @@ -91,7 +91,34 @@ charset - The character set (since PHP 5.3.6). + The character set. + + + Prior to PHP 5.3.6, this element was silently ignored. The same + behaviour can be replicated with the + PDO::MYSQL_ATTR_INIT_COMMAND driver option, as + the following example shows. + + + + + Setting the connection character set to UTF-8 prior to PHP 5.3.6 + + + 'SET NAMES utf8', +); + +$dbh = new PDO($dsn, $username, $password, $options); +?> +]]> + +