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

Don't support the Chinese chars. #10

Closed
mikespook opened this issue Feb 27, 2012 · 3 comments
Closed

Don't support the Chinese chars. #10

mikespook opened this issue Feb 27, 2012 · 3 comments

Comments

@mikespook
Copy link

The table and the go codes for testing are here: https://gist.github.com/1922748

The result is:
2012/02/27 17:18:40 [{"Code":"BBT","Name":"????"}]

But it should be this:
2012/02/27 17:18:40 [{"Code":"BBT","Name":"基础体温"}]

@ziutek
Copy link
Owner

ziutek commented Feb 27, 2012

I've added test for this string for native mymysql and it pass.

It seems that your issue is database/sql related. "SET NAMES utf8" is probably executed in one connection but "select * from dicts" in another (database/sql uses multiple simultaneous connections to database).

Update mymysql, do ./all.bash test in your environment and send feedback about the problems.

@mikespook
Copy link
Author

Ja, I've tested it. You're on the right track.
Thank you!

@mikespook
Copy link
Author

Should The additional parameters be added in dsn?
ziutek, how do u think about this?

http://codereview.appspot.com/5706047/

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

2 participants