Ad Widget

Collapse

Charset bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • artosx
    Junior Member
    • Aug 2011
    • 1

    #1

    Charset bug

    I have found that zabbix incorrectly sets up database connection charset. In file frontends/php/include/db.inc.php of zabbix-1.8.6 at lines 67-68:
    DBexecute('SET NAMES utf8');
    DBexecute('SET CHARACTER SET utf8');

    First statement sets all charsets (client, results, connection) to utf 8, whereas second statement does almost the same, but sets connection character set to charset of whole database. On my opinion second statement is redundant and even harmful, since if one creates database with "wrong" character set, second statemant always forces to use this charset (but not utf8).

    More info is here http://dev.mysql.com/...

    Arturs Aboltins
    Last edited by artosx; 11-08-2011, 16:09.
  • Vedmak
    Member
    • Feb 2009
    • 34

    #2
    Seems you are right, thanks you for reporting. New issue was created https://support.zabbix.com/browse/ZBX-4044

    Comment

    Working...