manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1221607 - /incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
Date Wed, 21 Dec 2011 04:23:59 GMT
Author: kwright
Date: Wed Dec 21 04:23:59 2011
New Revision: 1221607

URL: http://svn.apache.org/viewvc?rev=1221607&view=rev
Log:
Another fix; use utf8 in the JDBC driver

Modified:
    incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java

Modified: incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java?rev=1221607&r1=1221606&r2=1221607&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
(original)
+++ incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
Wed Dec 21 04:23:59 2011
@@ -45,7 +45,7 @@ public class DBInterfaceMySQL extends Da
     String server =  ManifoldCF.getProperty(mysqlServerProperty);
     if (server == null || server.length() == 0)
       server = "localhost";
-    return "jdbc:mysql://"+server+"/"+theDatabaseName;
+    return "jdbc:mysql://"+server+"/"+theDatabaseName+"?useUnicode=true&characterEncoding=utf8";
   }
 
   /** Initialize.  This method is called once per JVM instance, in order to set up



Mime
View raw message