MyBB Community Forums

Full Version: MyBB to use UTF-8 everywhere ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

How to do Your database encoding is 'utf8', should be 'utf8mb4'. Please update your MyBB to use UTF-8 everywhere ?

I hope it wont effect website ?

Regards.
Hello ?
A simple search will give you this:

https://community.mybb.com/thread-228989.html

Pay attention to this post in that thread.  Lots of folks miss it:

https://community.mybb.com/thread-228989...pid1366693

And backup your database before you start anything.  And close your forum.
If you use the AdminCP / Tools and Maintenance / UTF-8 Conversion tab, make sure to edit /inc/config.php to the new coding.

/**
 * Database Encoding
 *  If you wish to set an encoding for MyBB uncomment
 *  the line below (if it isn't already) and change
 *  the current value to the mysql charset:
 *  http://dev.mysql.com/doc/refman/5.1/en/charset-mysql.html
 */

$config['database']['encoding'] = 'utf8mb4';
(2022-08-24, 11:07 AM)HLFadmin Wrote: [ -> ]If you use the AdminCP / Tools and Maintenance / UTF-8 Conversion tab, make sure to edit /inc/config.php to the new coding.

/**
 * Database Encoding
 *  If you wish to set an encoding for MyBB uncomment
 *  the line below (if it isn't already) and change
 *  the current value to the mysql charset:
 *  http://dev.mysql.com/doc/refman/5.1/en/charset-mysql.html
 */

$config['database']['encoding'] = 'utf8mb4';

Done. Smile