summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/Driver.java
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-09-12 04:58:50 +0000
committerBruce Momjian <bruce@momjian.us>2000-09-12 04:58:50 +0000
commit65edb541865032b5750cfe58cb8f7affbe1fc298 (patch)
tree6f7c1aae279e75e5be4dceae692c8d3b2c9386a4 /src/interfaces/jdbc/org/postgresql/Driver.java
parent4f5cdadf03ae97de4fbd9ef90e15a080291b6a13 (diff)
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
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/Driver.java')
-rw-r--r--src/interfaces/jdbc/org/postgresql/Driver.java10
1 files changed, 9 insertions, 1 deletions
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
* <p>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 <encoding>" argument
+ * to createdb.
*
* Our protocol takes the forms:
* <PRE>