Error message

  • Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in include_once() (line 1389 of /Library/Server/Web/Data/Sites/Documents/jonathansblog/includes/bootstrap.inc).
  • Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in require_once() (line 341 of /Library/Server/Web/Data/Sites/Documents/jonathansblog/includes/module.inc).

Warning message

The service having id "facebook_widget" is missing, reactivate its module or save again the list of services.

Turning MySQL data into utf-8 from latin1

Categories:

Recently, I found myself moving a MySQL database from one MySQL database server to another, causing all sorts of problems, mostly with random characters being replaced with foreign characters. I determined the problem to be related to how the data was encoded, UTF-8 or latin1... and worse, sometimes a mix of the two, arghh.

I thought I had it bad, but think I've escaped lightly,

Derek Sivers writes...

"Did a raw data dump (mysqldump) of the data to a regular text "dump.sql" file.
(85 tables, millions of rows, an 8 gig dump)"

60 hours later, here is Derek's solution.

Derek continues...

"LESSON LEARNED: KEEP EVERYTHING IN UTF-8, ABSOLUTELY EVERYWHERE, FROM DAY ONE.
You'll be glad you did some day."

Technology really shouldn't be this hard.

Comments

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Image CAPTCHA
Enter the characters shown in the image.