Hi all I try to set up my server (debian 4.0) for koha and I follow the guidelines in: http://wiki.koha.org/doku.php?id=encodingscratchpad to make shure the encondings are right. Now I have a problem setting up MySQL: I added the three lines suggested: init-connect = 'SET NAMES utf8' character-set-server=utf8 collation-server=utf8_general_ci in my.cnf in the section [mysqld] Some of the variables suggested remain still latin1 mysql> show variables like "char%"; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | latin1 | | character_set_connection | latin1 | | character_set_database | utf8 | | character_set_filesystem | binary | | character_set_results | latin1 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.00 sec) mysql> show variables like "coll%"; +----------------------+-------------------+ | Variable_name | Value | +----------------------+-------------------+ | collation_connection | latin1_swedish_ci | | collation_database | utf8_general_ci | | collation_server | utf8_general_ci | +----------------------+-------------------+ 3 rows in set (0.00 sec) Is that a problem? What do I have to change to make the system utf8-proof? Thank you Beda
Beda Szukics-2 wrote:
init-connect = 'SET NAMES utf8' character-set-server=utf8 collation-server=utf8_general_ci in my.cnf in the section [mysqld] Some of the variables suggested remain still latin1
Try add more: [mysql] default-character-set=utf8 [mysqld] init-connect = ‘SET NAMES utf8’ default-character-set=utf8 character-set-server=utf8 collation-server=utf8_unicode_ci -- View this message in context: http://www.nabble.com/MySQL-and-utf8-tf4557490.html#a13013819 Sent from the Koha - Discuss mailing list archive at Nabble.com.
Serhij Dubyk Сергій Дубик schrieb:
Try add more:
[mysql] default-character-set=utf8 [mysqld] init-connect = ‘SET NAMES utf8’ default-character-set=utf8 character-set-server=utf8 collation-server=utf8_unicode_ci
Thank you. That helped. The only difference is that in my my.cnf it's [client] instead of [mysql] Thank you very much Beda
participants (2)
-
Beda Szukics -
Serhij Dubyk Сергі й Дубик