#1 (permalink)  
Old 06-17-2005, 11:49 AM
Registered User
 
Join Date: Jun 2005
Posts: 2
Jorgo is on a distinguished road
Exclamation Japanese characters lost in backup

Hello,
my hoster uses
PHP version 4.3.11
MySQL version 4.1.11-standard
cPanel Build 10.2.0-CURRENT 131

Today they had to restore a MySQL database with the inbuilt Restore Feature due to a MySQL server failure and the restored database, which contained western and asian characters, was partly corrupted.
It turns out that many, but not all, Japanese double-byte characters were lost and converted to invalid entities.

Do you have any advice for me how to proceed from here and what would be my best option to restore the backup correctly? Please ask me if you need more info.

Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-17-2005, 01:08 PM
Registered User
 
Join Date: Jun 2005
Posts: 2
Jorgo is on a distinguished road
Sorry, I already found the answer

It's a problem of migrating from MySQL 4.0.x to 4.1.x
The characters are all stored in UTF-8, but as a consequence of migrating from MySQL 4.0.x the tables are marked as latin1, which leads to a false interpretation of the codepage. The solution is to open the sql dump with a utf-8 capable editor and replace all occurrences of "latin1" with "utf-8".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:15 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc