Skip to content

Boiron/Db-Latin-Problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published