2011-04-04 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Added UTF-8 flags deletion from multibyte characters when files are opened. * lib/PandoraFMS/DB.pm: Added mysql_enable_utf8. It enables character semantics (support for multibyte characters). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4161 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
47f4f0bf33
commit
e9cfbf4160
|
@ -1,3 +1,11 @@
|
|||
2011-04-04 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* lib/PandoraFMS/Tools.pm: Added UTF-8 flags deletion from multibyte
|
||||
characters when files are opened.
|
||||
|
||||
* lib/PandoraFMS/DB.pm: Added mysql_enable_utf8. It enables character
|
||||
semantics (support for multibyte characters).
|
||||
|
||||
2011-03-16 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||
|
||||
* util/plugin/create_integria_incident.sh: Fixed an error in help text.
|
||||
|
|
|
@ -66,7 +66,7 @@ sub db_connect ($$$$$$) {
|
|||
if ($rdbms eq 'mysql') {
|
||||
|
||||
# Connect to MySQL
|
||||
my $dbh = DBI->connect("DBI:mysql:$db_name:$db_host:3306", $db_user, $db_pass, { RaiseError => 1, AutoCommit => 1 });
|
||||
my $dbh = DBI->connect("DBI:mysql:$db_name:$db_host:3306", $db_user, $db_pass, { RaiseError => 1, AutoCommit => 1, mysql_enable_utf8 => 1 });
|
||||
return undef unless defined ($dbh);
|
||||
|
||||
# Enable auto reconnect
|
||||
|
|
|
@ -30,6 +30,10 @@ use HTML::Entities;
|
|||
# Used to calculate the MD5 checksum of a string
|
||||
use constant MOD232 => 2**32;
|
||||
|
||||
# UTF-8 flags deletion from multibyte characters when files are opened.
|
||||
use open OUT => ":utf8";
|
||||
use open ":std";
|
||||
|
||||
require Exporter;
|
||||
|
||||
our @ISA = ("Exporter");
|
||||
|
|
Loading…
Reference in New Issue