[vhffs-dev] [1072] Indicates to database driver that we're using UTF-8...

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1072
Author:   beuss
Date:     2007-11-08 12:26:03 +0000 (Thu, 08 Nov 2007)

Log Message:
-----------
Indicates to database driver that we're using UTF-8...
This will allow us to clean some decode_utf8

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Functions.pm


Modified: trunk/vhffs-api/src/Vhffs/Functions.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Functions.pm	2007-11-08 11:41:17 UTC (rev 1071)
+++ trunk/vhffs-api/src/Vhffs/Functions.pm	2007-11-08 12:26:03 UTC (rev 1072)
@@ -374,7 +374,8 @@
 
 		$dbparams = "dbname=$backend_config->{'db_name'};host=$host;port=$port";
         $dbh = DBI->connect("DBI:$driver:$dbparams",$backend_config->{'db_username'}, $backend_config->{'db_password'}) || (warn "Cant connect: $DBI::errstr\n" and return undef);
-
+        $dbh->{pg_enable_utf8}=1;
+        
         return( $dbh );
     }
     


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/