Hi, I have an encoding problem with mysql:
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"
Is it my fault? If not, can you fix it? |