luislavena / mysql-gem

MySQL/Ruby Bindings, wrapped as Gem with improved cross-platform support
http://rubyforge.org/projects/mysql-win
Other
53 stars 20 forks source link

Encoding problem #5

Closed nono closed 14 years ago

nono commented 14 years ago

Hi, I have opened a bug on rubyforge about an encoding problem, but I don't know if it's not here that the bug should be reported. So, this is my bug:

conn = Mysql.init
conn.options(Mysql::READ_DEFAULT_GROUP, "client") # <- without this option, it works as I expect it
conn.options(Mysql::SET_CHARSET_NAME, "latin1")
conn.conn.character_set_name # => "latin1"
conn.real_connect(...)
conn.conn.character_set_name # => "utf8", but I expected "latin1"
luislavena commented 14 years ago

Hello,

The purpose of this project is to provide a gem for MySQL/Ruby extension.

Please read this from the readme:

http://github.com/luislavena/mysql-gem/blob/master/README.txt#L10-14

If the extension developer fix that in his project and release a new version, I'll be able to package it as a gem.

Regards.