summaryrefslogtreecommitdiff
path: root/LedgerSMB/RESTXML
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-29 03:00:44 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-29 03:00:44 +0000
commit02ece7f8642038fffd47d53e46a32efa14d636f5 (patch)
treed95ad45c8607b1aa8aacce8163086f27ce1666cd /LedgerSMB/RESTXML
parent0b640c457af0db54ee79857ff15d81055280a5b8 (diff)
Set database connections to utf8
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1121 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/RESTXML')
-rw-r--r--LedgerSMB/RESTXML/Handler.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/LedgerSMB/RESTXML/Handler.pm b/LedgerSMB/RESTXML/Handler.pm
index 0939da7f..ab63ad2a 100644
--- a/LedgerSMB/RESTXML/Handler.pm
+++ b/LedgerSMB/RESTXML/Handler.pm
@@ -124,6 +124,7 @@ sub connect_db {
my $dbh = DBI->connect( $myconfig->{dbconnect},
$myconfig->{dbuser}, $myconfig->{dbpasswd} )
or carp "Error connecting to the db :$DBI::errstr";
+ $dbh->{pg_enable_utf8} = 1;
return $dbh;
}