mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 00:06:55 +02:00
Fix issue processwire/processwire-issues#192 where inserted emoji could cause text to be truncated on systems using dbEngine "utf8" (as opposed to "utf8mb4"). Because the emoji/MB4 detection and replacement has some overhead, it's not enabled by default. To enable, set $config->dbStripMB4=true; in your /site/config.php file.
This commit is contained in:
@@ -912,6 +912,17 @@ $config->dbSocket = '';
|
||||
*/
|
||||
$config->dbQueryLogMax = 500;
|
||||
|
||||
/**
|
||||
* Remove 4-byte characters (like emoji) when dbEngine is not utf8mb4?
|
||||
*
|
||||
* When charset is not “utf8mb4” and this value is true, 4-byte UTF-8 characters are stripped
|
||||
* out of inserted values when possible. Note that this can add some overhead to INSERTs.
|
||||
*
|
||||
* @var bool
|
||||
*
|
||||
*/
|
||||
$config->dbStripMB4 = false;
|
||||
|
||||
|
||||
|
||||
/*** 8. MODULES *********************************************************************************/
|
||||
|
Reference in New Issue
Block a user