projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.16
[freeside.git]
/
rt
/
lib
/
RT
/
Handle.pm
diff --git
a/rt/lib/RT/Handle.pm
b/rt/lib/RT/Handle.pm
index
f0bce38
..
9f9beb1
100644
(file)
--- a/
rt/lib/RT/Handle.pm
+++ b/
rt/lib/RT/Handle.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
7
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
9
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-138,6
+138,11
@@
sub Connect {
($version) = $version =~ /^(\d+\.\d+)/;
$self->dbh->{pg_server_prepare} = 0 if $version > 9.1; #and we're using a deb-7 version DBD::Pg?
$self->dbh->do("SET bytea_output = 'escape'") if $version >= 9.0;
($version) = $version =~ /^(\d+\.\d+)/;
$self->dbh->{pg_server_prepare} = 0 if $version > 9.1; #and we're using a deb-7 version DBD::Pg?
$self->dbh->do("SET bytea_output = 'escape'") if $version >= 9.0;
+
+ # Force UTF8, even when database encoding is not UTF8
+ # DBD::Pg used to do this for us prior to v3
+ $self->dbh->do('SET client_encoding TO UTF8;');
+ $self->dbh->{pg_enable_utf8} = -1;
}
}