Received: from plenty.natakademin.se (IDENT:mail@plenty.natakademin.se [212.105.105.243]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA81450 for ; Tue, 23 May 2000 06:05:36 -0400 (EDT) (envelope-from anders@natakademin.se) Received: from husby.natakademin.se ([212.105.105.242] helo=natakademin.se) by plenty.natakademin.se with esmtp (Exim 3.13 #1) id 12uBYc-0001TK-00 for pgsql-interfaces@postgresql.org; Tue, 23 May 2000 12:05:02 +0200 Message-ID: <392A57EA.2BC008E9@natakademin.se> Date: Tue, 23 May 2000 12:05:30 +0200 From: Anders Bengtsson Organization: =?iso-8859-1?Q?N=E4takademin?= AB X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: sv, en MIME-Version: 1.0 To: "pgsql-interfaces@postgresql.org" Subject: Charsets in JDBC driver? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200005/33 Hello, I'm trying to find out how the JDBC driver handles different character encodings, since i'll possibly need have strings in English, Swedish and Chinese in the same database and the same Java VM. Postgres seems to handle a lot of different charsets, both single- and multi-byte. Java is all Unicode inside, so there shouldn't be a problem there. I've been looking through the source of the JDBC2 driver, without finding much mentioned about character encodings. Does the driver just assume that both PostgreSQL and Java are running in the same locale, with the same default character encoding? /Anders ________________________________________________________________________ A n d e r s B e n g t s s o n anders@natakademin.se http://www.natakademin.se/