Commit a20f8f6a authored by Darien's avatar Darien

Changed Doctrine page to use utf8mb4 as sample

MySQL's `utf8` character set is a little broken, and does not cover 4-byte UTF-8 characters. In most cases it will quietly truncate the string whenever it sees one, saving incomplete text data.  

In  5.5.3 they introduced `utf8mb4` to fix this inconsistency, and given that it's been 5 years, it's probably safe to encourage people to use it. If their MySQL installation is old, it should be easy for them to find the distinctive string and change it back to `utf8`.
parent e4df3aac
...@@ -103,7 +103,7 @@ and values are options:: ...@@ -103,7 +103,7 @@ and values are options::
'dbname' => 'my_database', 'dbname' => 'my_database',
'user' => 'my_username', 'user' => 'my_username',
'password' => 'my_password', 'password' => 'my_password',
'charset' => 'utf8', 'charset' => 'utf8mb4',
), ),
'mysql_write' => array( 'mysql_write' => array(
'driver' => 'pdo_mysql', 'driver' => 'pdo_mysql',
...@@ -111,7 +111,7 @@ and values are options:: ...@@ -111,7 +111,7 @@ and values are options::
'dbname' => 'my_database', 'dbname' => 'my_database',
'user' => 'my_username', 'user' => 'my_username',
'password' => 'my_password', 'password' => 'my_password',
'charset' => 'utf8', 'charset' => 'utf8mb4',
), ),
), ),
)); ));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment