Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not support utf8 #12

Open
myehrajat opened this issue Nov 26, 2018 · 2 comments
Open

not support utf8 #12

myehrajat opened this issue Nov 26, 2018 · 2 comments

Comments

@myehrajat
Copy link

No description provided.

@dolphinotaku
Copy link

I fixed this here Pull #17
Image 33

P.S
I fixed this base on namespaced branch

https://github.com/2createStudio/shuttle-export/tree/namespaced

@shangab
Copy link

shangab commented Mar 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants