Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 995 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 995 Bytes

Db-Latin-Problems

We have an interesting dilemna at Boiron. Our original web developers, for reasons unknown to the universe, encoded most of our databases in Latin-Swedish 1. This leaves behind some really crazy symbols when you upgrade Wordpress or even make minor changes to the websites.

Luckily, I am a web wizard

I discovered you could essentially "trick" the databases into being read properly by making a minor alteration to the wp-config.php file

What to change

First of all, never begin by encoding in Latin 1 or I will make fun of you forever

Second, change: define('DB_CHARSET', 'utf8'); to define('DB_CHARSET', 'latin1');

Remember to always make fun of people who encode in Latin 1 because they don't know what they're doing.

Some resources:

https://theblogpress.com/blog/seeing-weird-characters-on-blog-how-to-fix-wordpress-character-encoding-latin1-to-utf8/

https://codex.wordpress.org/Converting_Database_Character_Sets