Setup:UTF-8

From Cerberus Helpdesk Wiki

Jump to: navigation, search

Recommended Method: Converting an *existing* MySQL database from latin1 to utf8

Use this method if at all possible as it will attempt to recover non-English latin1 characters (accents, umlauts) in your existing data. If you can't follow these instructions (e.g. no shell access, Windows, can only make one DB, no willpower) then use the Quick & Dirty alternate approach below.

Dump the database schema (use your own user + password + database): (shell)


Dump the database data (use your own user + password + database): (shell)


Create a new UTF-8 database: (MySQL)


Import into the new database: (shell)


Update your /cerb4/framework.config.php:


Notes:

Quick & Dirty (MySQL5+): Converting an *existing* MySQL database from latin1 to utf8

If you couldn't use the recommended approach above then you can use this approach. It will only work in MySQL5 and it won't attempt to recover non-English latin1 characters (accents, umlauts) from existing data. This is generally only a problem if those characters occur frequently in the Address Book; if so, you'll need to fix the input manually. All new data will be properly encoded.

upgrade_utf8.php:


Update your /cerb4/framework.config.php:


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox