If your database has UTF-8 encoded data, patch mysql_dump.

Recommend this page to a friend!

      mysql_dump  >  All threads  >  If your database has UTF-8 encoded...  >  (Un) Subscribe thread alerts  
Subject:If your database has UTF-8 encoded...
Summary:Package rating comment
Messages:1
Author:Neboj?a Kamber
Date:2010-12-08 13:05:57
 

Neboj?a Kamber rated this package as follows:

Utility: Good
Consistency: Good
Examples: Good

  1. If your database has UTF-8 encoded...   Reply   Report abuse  
Neboj?a Kamber - 2010-12-08 13:05:57
If your database has UTF-8 encoded data, patch mysql_dump.inc.php like this:
line 269: @fwrite($fp,utf8_encode($sql));
after line 350 add: @mysql_set_charset("utf8");

in order to properly encode the data

 

For more information send a message to info at phpclasses dot org.