File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -134,15 +134,21 @@ for you:
134
134
There's no way to configure these defaults inside Doctrine, as it tries to be
135
135
as agnostic as possible in terms of environment configuration. One way to solve
136
136
this problem is to configure server-level defaults.
137
+
138
+ .. caution ::
139
+
140
+ If you are using MySQL, its `utf8 ` character set has some shortcomings
141
+ which may cause problems. Prefer the `utf8mb4 ` character set instead, if
142
+ your version supports it.
137
143
138
144
Setting UTF8 defaults for MySQL is as simple as adding a few lines to
139
145
your configuration file (typically ``my.cnf ``):
140
146
141
147
.. code-block :: ini
142
148
143
149
[mysqld]
144
- collation-server = utf8_general_ci
145
- character-set-server = utf8
150
+ collation-server = utf8mb4_general_ci
151
+ character-set-server = utf8mb4
146
152
147
153
.. note ::
148
154
You can’t perform that action at this time.
0 commit comments