pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedIs UTF-8 required for PostgreSQL JDBC?
3+ messages / 3 participants
[nested] [flat]
* Is UTF-8 required for PostgreSQL JDBC?
@ 2006-11-17 20:33 Wm.A.Stafford <stafford@marine.rutgers.edu>
2006-11-18 02:39 ` Re: Is UTF-8 required for PostgreSQL JDBC? Roland Walter <roland.walter.rwa@gmx.net>
2006-11-21 13:07 ` Re: Is UTF-8 required for PostgreSQL JDBC? Markus Schaber <schabi@logix-tt.com>
0 siblings, 2 replies; 3+ messages in thread
From: Wm.A.Stafford @ 2006-11-17 20:33 UTC (permalink / raw)
To: pgsql-jdbc
When installing PostgreSQL two weeks ago I thought I read that the
encoding for a DB that will be acccessed via JDBC must be UTF-8. Is
this correct? I can not find the docs page where I saw this and I'm
beginning to wonder if I imagined it.
Thanks in advance,
Bill Stafford
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Is UTF-8 required for PostgreSQL JDBC?
2006-11-17 20:33 Is UTF-8 required for PostgreSQL JDBC? Wm.A.Stafford <stafford@marine.rutgers.edu>
@ 2006-11-18 02:39 ` Roland Walter <roland.walter.rwa@gmx.net>
1 sibling, 0 replies; 3+ messages in thread
From: Roland Walter @ 2006-11-18 02:39 UTC (permalink / raw)
To: stafford@marine.rutgers.edu; +Cc: pgsql-jdbc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wm.A.Stafford wrote:
> When installing PostgreSQL two weeks ago I thought I read that the
> encoding for a DB that will be acccessed via JDBC must be UTF-8. Is
> this correct? I can not find the docs page where I saw this and I'm
> beginning to wonder if I imagined it.
>
You may choose any encoding for your database that PostgreSQL supports.
Regards,
Roland.
- --
Dipl.-Phys. Roland Walter phone: +49 2238 462163
Römerfeldstr. 8 mobile: +49 177 2373036
50259 Pulheim mailto: roland.walter.rwa@gmx.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFFXnJhxoOEAkary1ERAtIGAJ4nWaX2JZeeDsROwoxEBTbqEVSoHgCfQa1P
jzdJ4z2xcWCvtKjb6zfL2Rw=
=FKUd
-----END PGP SIGNATURE-----
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Is UTF-8 required for PostgreSQL JDBC?
2006-11-17 20:33 Is UTF-8 required for PostgreSQL JDBC? Wm.A.Stafford <stafford@marine.rutgers.edu>
@ 2006-11-21 13:07 ` Markus Schaber <schabi@logix-tt.com>
1 sibling, 0 replies; 3+ messages in thread
From: Markus Schaber @ 2006-11-21 13:07 UTC (permalink / raw)
To: stafford@marine.rutgers.edu; +Cc: pgsql-jdbc
Hi, Bill,
Wm.A.Stafford wrote:
> When installing PostgreSQL two weeks ago I thought I read that the
> encoding for a DB that will be acccessed via JDBC must be UTF-8. Is
> this correct? I can not find the docs page where I saw this and I'm
> beginning to wonder if I imagined it.
That's wrong, the database can be in any encoding you like.
The connection actually is encoded in UTF-8. PostgreSQL converts all
data between UTF-8 and the actual database encoding, and the JDBC triver
converts between UTF-8 and the JVM-internal unicode representation
(which is likely to be an UTF-16-derivate, as that's closest to what's
visible to the Java code).
Executing a "SET client_encoding TO foobar" through the JDBC driver may
break things for that one connection.
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-11-21 13:07 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-11-17 20:33 Is UTF-8 required for PostgreSQL JDBC? Wm.A.Stafford <stafford@marine.rutgers.edu>
2006-11-18 02:39 ` Roland Walter <roland.walter.rwa@gmx.net>
2006-11-21 13:07 ` Markus Schaber <schabi@logix-tt.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox