Why is converting my database to UTF-8 truncating entries?

The issue was one of mixed encoding. Some fields contained data encoded properly as UTF-8; others contained data encoded as something else, probably ISO-8859-1. When imported to a new UTF-8 database, this was causing truncation. My steps to solve this: Copy the original database, wordpress, to a new database, wordpress2. Make sure the collation of … Read more

Weird characters displayed when importing WordPress MySQL db

Can you try setting the DB Charset within wp-config.php? define(‘DB_CHARSET’, ‘utf8_general_ci’); define(‘DB_COLLATE’, ‘utf8_general_ci’); Have a read of this first though: https://codex.wordpress.org/Editing_wp-config.php It can cause problems to an already existing blog to add those lines into wp-config.php, so use with caution. Are you importing this through WordPress or manually through something like PhpMyAdmin? Also, are all … Read more

character encoding problem in custom template

Maybe it is caused by commenting out the charset meta tag? You should have this in your header: <meta charset=”utf-8″ /> You can see in your source that this meta tag is commented out – maybe while debugging this problem. <!–<meta charset=”UTF-8″>–> Additionally you could check if your database settings are set to utf8_general_ci or … Read more

Search issue on special Character

By copying and pasting each dash into a Unicode lookup (linked below), you can see the two characters are different. Your first string contains an En Dash, which is a different character value than the second string, which is a Hyphen Minus. When performing a search, WordPress is searching for the Em Dash value in … Read more