search for: mysql_set_charset_name

Displaying 2 results from an estimated 2 matches for "mysql_set_charset_name".

2015 Mar 11
2
Fixing broken UTF-8 handling with MySQL driver
...and field), and the character_set_* runtime variables all yield the value "utf8", it still seems that the mysql client library must be instructed to actually use UTF-8 explicitly. Adding the following statement to driver_mysql_connect() fixes the issue for me: mysql_options(db->mysql, MYSQL_SET_CHARSET_NAME, "utf8"); I checked this against mysql 5.5.41. Regards, Felix -------------- next part -------------- A non-text attachment was scrubbed... Name: mysql_utf8.patch Type: application/octet-stream Size: 559 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachment...
2015 Mar 12
0
Fixing broken UTF-8 handling with MySQL driver
..., and the character_set_* runtime variables all yield the value "utf8", it still seems that the mysql client library must be instructed to actually use UTF-8 explicitly. Adding the following statement to driver_mysql_connect() fixes the issue for me: > > mysql_options(db->mysql, MYSQL_SET_CHARSET_NAME, "utf8"); I think you can also add to /etc/my.cnf : [client] default-character-set = utf8