Ad Widget

Collapse

Bug with russian UTF-8 locale...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chuwbacca
    Junior Member
    • Feb 2009
    • 7

    #1

    Bug with russian UTF-8 locale...

    Then user language is Russian, i found problem with activation/deactivation some data elements:
    * pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: invalid byte sequence for encoding "UTF8": 0xd02e HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".[/var/www/zabbix/include/db.inc.php:465]
    * Error in query [INSERT INTO auditlog (auditid,userid,clock,action,resourcetype,details) values (611,1,1235572963,1,15,'Элемент данных [vm.memory.size[cached]] [22265] Узел сети [Linux]Элементы данных акти�...')] [ERROR: invalid byte sequence for encoding "UTF8": 0xd02e HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".]
    I fix it in ./include/audit.inc.php, just change:
    PHP Code:
    $details substr($details0125).'...'
    in function add_audit with:
    PHP Code:
    $details mb_substr($details0125).'...'
    (multibyte support)

    Sorry, version 1.6.2
    Last edited by Chuwbacca; 26-02-2009, 09:57. Reason: version add
Working...