MyBB Documentation

UTF8 setup

The 1.6 Documentation is no longer maintained and some information may be outdated.

The MyBB 1.6 series reached end of life on October 1, 2015.

This means there will be no more security or maintenance releases for these series and forums running these versions of MyBB may be at risk of unfixed security issues. All administrators are strongly encouraged to upgrade their forums to the latest release of MyBB as soon as possible.

MyBB 1.2.10 and above feature a new set of UTF-8 tools. These tools allow users to convert their current encodings over to UTF-8 which is rapidly becoming the Unicode standard for many webmasters. However, before you can use these tools we need to make some changes to the config.php.

Contents

The following changes are to be made in inc/config.php. At this time you should download that file and open it in an appropriate text editor.

1. Look for the following lines in inc/config.php. If they do not exist go to "Adding the code". Otherwise go to "Fixing the code"

2. Add the following lines right before ?> (located at the end of the file)

/**
 * 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'] = 'utf8';

2. Find the following line

// $config['database']['encoding'] = 'utf8';

And replace it with

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

Save the file and upload it to your server, replacing the old inc/config.php. Now that's done, you can continue to run the UTF-8 tools in the ACP.


Please note that once you've converted to UTF-8 there is no supported way to undo this process.

MyBB Documentation
Front End Index Page - Portal - Forum Display - Thread Display - Posting Threads and Replies - Searching - User CP - Member Profile - Private Messages - Calendar - Member List - Help Docs - Who Is Online - Lite (Archive) Mode - Forum Team - Statistics - RSS Syndication - Miscellaneous
Moderation Standard Thread Moderation - Inline Thread Moderation - Inline Post Moderation - Warning System
Mod CP Home - Forums and Posts - Users
Admin CP Home - Configuration - Forums & Posts - Users & Groups - Templates & Style - Tools & Maintenance
Templates & Themes Images - Postbit - Templates - Themes
Developer Database Methods - Database Tables
Miscellaneous Cookies - UTF8 Setup - Default Settings

Edit this page on GitHub