utf-8-question 2005-07-31 - By Birgit Kellner
Back Earlier, I had some utf8-problems with MySQL 4.1.10 and DBD-mysql 2.9* (http://lists.mysql.com/perl/3566). For some reason, utf8-problems returned after I had initially resolved them with a DBD-mysql-patch: special characters like German Umlaut just weren't handled properly.
I updated DBD-mysql 3.008. I finally managed to solve the problems by calling "set names 'utf8'" within my perl scripts each time a database connection is made. However, I don't understand why I have to do this.
/etc/my.cnf lists "default-character-set=utf-8 (See http://utf-8.ora-code.com)" in all sections. phpMyAdmin reports all character set variables as utf8. When I connect to mysql from the command-line and then retrieve the character set variables, character_set_client, character_set_connection and character_set_results are set to "latin1". Why?
While my problems seem to be solved, I would really like to understand what caused them in the first place,
thanks, and best regards,
Birgit Kellner
-- MySQL Perl Mailing List For list archives: http://lists.mysql.com/perl To unsubscribe: http://lists.mysql.com/perl?unsub=mysql@(protected)
|
|