MyBB Community Forums

Full Version: How to make a plugin installs as UTF8 ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

When I translate a plugin, than I install it,
it will work as latin1, till I change it manually from convert to UTF8 from cp.

so I need a code to make the plugin installs as UTF8 directly.


I run the latest mybb version.

I searched, and didn't find it,
please help.
Thank you for your help,
I hope you find me a solution
Unless the plugin specifically sets itself up as latin1 (as in, it sets the collation in the query) then it defaults to whatever the database is setup as.

So, in short, you need to be sure your database is setup as UTF-8 as default.

Run this query, and it should work (replace mybb_database with the name of your forum's database):

ALTER DATABASE `mybb_database` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci