shuttle-export
shuttle-export copied to clipboard
not support utf8
I fixed this here Pull https://github.com/2createStudio/shuttle-export/pull/17
P.S I fixed this base on namespaced branch
https://github.com/2createStudio/shuttle-export/tree/namespaced
Hello Guys,
For this tool to support fully UTF8 you need to add two lines only:
In class Shuttle_DBConn_Mysql extends Shuttle_DBConn:
function connect() {
$this->connection = @mysql_connect($this->host, $this->username, $this->password);
mysql_set_charset('utf8',$this->connection); // This is the new line number 1
RESTOFTHEFUNCTION(...);
And in Shuttle_DBConn_Mysqli extends Shuttle_DBConn class:
function connect() {
$this->connection = @new MySQLi($this->host, $this->username, $this->password, $this->name);
mysqli_set_charset($this->connection,'utf8'); // This is the new line number 2
RESTOFTHEFUNCTION(...);
And then have fun with the world UTF8 :-) We only need to add ROUTINES export as well to fully backup the DB.