pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC CharSet with SQL_ASCII
2+ messages / 2 participants
[nested] [flat]

* JDBC CharSet with SQL_ASCII
@ 2010-01-14 08:38  Mirco Attocchi <amirco@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Mirco Attocchi @ 2010-01-14 08:38 UTC (permalink / raw)
  To: pgsql-jdbc

Hi All,
I'm newest to this list (sorry for my bad english).
I've a question about charset with jdbc.
I've verified that my customer postgresql database is configured in
SQL_ASCII but when I read data I receive strange chars in some fields.

Do you know how I can determinate the right character set?

PostgreSQL version: 8.3.7
JDBC driver version: 8.4-701.jdbc4

Thank you all

-- 
Mirco Attocchi



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: JDBC CharSet with SQL_ASCII
@ 2010-01-14 09:51  Oliver Jowett <oliver@opencloud.com>
  parent: Mirco Attocchi <amirco@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Jowett @ 2010-01-14 09:51 UTC (permalink / raw)
  To: Mirco Attocchi <amirco@gmail.com>; +Cc: pgsql-jdbc

Mirco Attocchi wrote:
> Hi All,
> I'm newest to this list (sorry for my bad english).
> I've a question about charset with jdbc.
> I've verified that my customer postgresql database is configured in
> SQL_ASCII but when I read data I receive strange chars in some fields.
> 
> Do you know how I can determinate the right character set?

Well, the problem with SQL_ASCII is exactly that - there is no 
information about what encoding should be used to interpret the data. 
You will have to inspect the data stored in the database by hand and 
work out what encoding it is actually using. Then you should probably 
convert the database to use UNICODE or another appropriate encoding.

-O



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-01-14 09:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-01-14 08:38 JDBC CharSet with SQL_ASCII Mirco Attocchi <amirco@gmail.com>
2010-01-14 09:51 ` Oliver Jowett <oliver@opencloud.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