From 65edb541865032b5750cfe58cb8f7affbe1fc298 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 12 Sep 2000 04:58:50 +0000 Subject: Attached are a patch to allow the charset encoding used by the JDBC driver to be set, and a description of said patch. Please refer to the latter for more information. William -- William Webber william@peopleweb.net.au --- src/interfaces/jdbc/org/postgresql/Driver.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/interfaces/jdbc/org/postgresql/Driver.java') diff --git a/src/interfaces/jdbc/org/postgresql/Driver.java b/src/interfaces/jdbc/org/postgresql/Driver.java index 779c58eb008..d5a5c8d24fe 100644 --- a/src/interfaces/jdbc/org/postgresql/Driver.java +++ b/src/interfaces/jdbc/org/postgresql/Driver.java @@ -90,7 +90,15 @@ public class Driver implements java.sql.Driver *

The java.util.Properties argument can be used to pass arbitrary * string tag/value pairs as connection arguments. Normally, at least * "user" and "password" properties should be included in the - * properties. + * properties. In addition, the "charSet" property can be used to + * set a character set encoding (e.g. "utf-8") other than the platform + * default (typically Latin1). This is necessary in particular if storing + * multibyte characters in the database. For a list of supported + * character encoding , see + * http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html + * Note that you will probably want to have set up the Postgres database + * itself to use the same encoding, with the "-E " argument + * to createdb. * * Our protocol takes the forms: *

-- 
cgit v1.2.3