mysql UTF-8 connect and more ...

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
help40
Posts: 14
Joined: Mon Sep 20, 2010 9:46 am

mysql UTF-8 connect and more ...

Post by help40 »

1) includes/database.php - 34 line

$dbConn = new PDO( ZM_DB_TYPE . ':host=' . ZM_DB_HOST . ';dbname='.ZM_DB_NAME, ZM_DB_USER, ZM_DB_PASS, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") );

Remark : yes , may be it can be done with "pdo_mysql.connect_charset = utf8" in php.ini or "php_admin_value pdo_mysql.connect_charset "utf8" in .htaccess , but .... why not add it to zoneminder ??


2) also Config table in CHARSET=utf8 NOT CHARSET=latin1

3) and may be .... in skins ....after <head> to add
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

as example in :
skins/classic/includes/export_functions.php
skins/classic/includes/functions.php
skins/classic/views/none.php
Post Reply