pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Encoding
8+ messages / 7 participants
[nested] [flat]

* Encoding
@ 2001-12-10 09:59  rasejo <rasejo@hotmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: rasejo @ 2001-12-10 09:59 UTC (permalink / raw)
  To: pgsql-jdbc

 
Can anyone give me the different encodings that can be set in
postgresSQL .
Thanks!

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

* FW: Encoding
@ 2001-12-10 13:39  raymund <rasejo@amazing-lifestyles.com>
  0 siblings, 0 replies; 8+ messages in thread

From: raymund @ 2001-12-10 13:39 UTC (permalink / raw)
  To: pgsql-jdbc

Can anyone give me the different encodings that can be set in
postgresSQL .
Thanks!

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

* Re: Encoding
@ 2001-12-10 19:28  Dave Cramer <dave@fastcrypt.com>
  parent: rasejo <rasejo@hotmail.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Dave Cramer @ 2001-12-10 19:28 UTC (permalink / raw)
  To: 'rasejo' <rasejo@hotmail.com>; pgsql-jdbc

Here are the encodings possible
 
http://www.postgresql.org/idocs/index.php?multibyte.html
 
Dave
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of rasejo
Sent: Monday, December 10, 2001 5:00 AM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Encoding


 
Can anyone give me the different encodings that can be set in
postgresSQL .
Thanks!

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

* Encoding
@ 2002-05-06 19:58  Thomas De Vos <devos_thomas@yahoo.co.uk>
  0 siblings, 1 reply; 8+ messages in thread

From: Thomas De Vos @ 2002-05-06 19:58 UTC (permalink / raw)
  To: pgsql-jdbc-owner@postgresql.org; +Cc: pgsql-jdbc; ThomasDeVos@it-enterprise.co.uk

Hiya,

I was 2 months ago using the sourceforge JDBC driver on WinNt as client and
HP-UX as server (so PostgresQl) server. At time I had problems with the
extented ASII set, all the characters were converted to "?". So I switched
to the org.postgresql.Driver and problem seems to be solved.
Now 2 months later we have to go into production and the target OS is Debian
Linux for client and server. And guess what I can see the same problem, all
characters belonging to the extented set are converted to "?".

I have written a small testprogram, create one connection and tries to
insert data with Java and JDBC. This seems not to work. But .... if I insert
data with psql -h ... -f insertcommandfile.sql and look then in the database
then there is no problem at all. Extented Characters are inserted. So I
suppose the Db is correctly configured. (eg client-encoding and server
encoding).
I have seen that ages ago the JDBC driver had problems with encoding but
this was solved I thought.
I'm testing with this character: é, but also other characters has the same
problem.

I need help .... Real help ...

Kind regards,

Thomas De Vos
IT Enterprise Ltd
Phone:  00 44 (0)127 650 5385
Mobile: 00 44 (0)777 990 7717
ThomasDeVos@it-enterprise.co.uk

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

* Re: Encoding
@ 2002-05-08 16:48  Thomas De Vos <devos_thomas@yahoo.co.uk>
  parent: Thomas De Vos <devos_thomas@yahoo.co.uk>
  0 siblings, 1 reply; 8+ messages in thread

From: Thomas De Vos @ 2002-05-08 16:48 UTC (permalink / raw)
  To: ThomasDeVos@it-enterprise.co.uk; pgsql-jdbc-owner@postgresql.org; +Cc: pgsql-jdbc

Hiya,

The problem seems to be solved. Added debugging information in the Postgres
Driver and at the end after several tests I was able to conclude that it
didn't has anything to do with the driver.
So I wrote a few sample apps. (reading - writing from file with extended
character set in it) and it was the BlackDown JVM who behaves very strange
and also the Sun's JVM seems to behave very strange and translate (converts)
these characters into "?".
Only the IBM's JVM seems to work fine.

The OS is Debian Linux with Blackdown JVM who gave me a few nights without
rest!!!!

Thomas De Vos

[Thomas De Vos]  -----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Thomas De Vos
Sent: 06 May 2002 20:58
To: pgsql-jdbc-owner@postgresql.org
Cc: pgsql-jdbc@postgresql.org; ThomasDeVos@it-enterprise.co.uk
Subject: [JDBC] Encoding


  Hiya,

  I was 2 months ago using the sourceforge JDBC driver on WinNt as client
and HP-UX as server (so PostgresQl) server. At time I had problems with the
extented ASII set, all the characters were converted to "?". So I switched
to the org.postgresql.Driver and problem seems to be solved.
  Now 2 months later we have to go into production and the target OS is
Debian Linux for client and server. And guess what I can see the same
problem, all characters belonging to the extented set are converted to "?".

  I have written a small testprogram, create one connection and tries to
insert data with Java and JDBC. This seems not to work. But .... if I insert
data with psql -h ... -f insertcommandfile.sql and look then in the database
then there is no problem at all. Extented Characters are inserted. So I
suppose the Db is correctly configured. (eg client-encoding and server
encoding).
  I have seen that ages ago the JDBC driver had problems with encoding but
this was solved I thought.
  I'm testing with this character: é, but also other characters has the same
problem.

  I need help .... Real help ...

  Kind regards,

  Thomas De Vos
  IT Enterprise Ltd
  Phone:  00 44 (0)127 650 5385
  Mobile: 00 44 (0)777 990 7717
  ThomasDeVos@it-enterprise.co.uk

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

* Re: Encoding
@ 2002-05-09 16:47  Ryan Chambers <ryan@squaretrade.com>
  parent: Thomas De Vos <devos_thomas@yahoo.co.uk>
  0 siblings, 0 replies; 8+ messages in thread

From: Ryan Chambers @ 2002-05-09 16:47 UTC (permalink / raw)
  To: pgsql-jdbc


I've had problems like this too, but it was an OS issue. Basically, the
default character set for Solaris is ASCII, but our data was all ISO-8859-1.
This was causing the ? corruptions that you mention.

This was solved by adding the following commands to the shell script I use
to run the java application:

LC_CTYPE=iso_8859_1

export LC_CTYPE



I don't know if this can be of any use to you, though. Good luck.

Ryan



  -----Original Message-----
  From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Thomas De Vos
  Sent: Wednesday, May 08, 2002 9:49 AM
  To: ThomasDeVos@it-enterprise.co.uk; pgsql-jdbc-owner@postgresql.org
  Cc: pgsql-jdbc@postgresql.org
  Subject: Re: [JDBC] Encoding


  Hiya,

  The problem seems to be solved. Added debugging information in the
Postgres Driver and at the end after several tests I was able to conclude
that it didn't has anything to do with the driver.
  So I wrote a few sample apps. (reading - writing from file with extended
character set in it) and it was the BlackDown JVM who behaves very strange
and also the Sun's JVM seems to behave very strange and translate (converts)
these characters into "?".
  Only the IBM's JVM seems to work fine.

  The OS is Debian Linux with Blackdown JVM who gave me a few nights without
rest!!!!

  Thomas De Vos

  [Thomas De Vos]  -----Original Message-----
  From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Thomas De Vos
  Sent: 06 May 2002 20:58
  To: pgsql-jdbc-owner@postgresql.org
  Cc: pgsql-jdbc@postgresql.org; ThomasDeVos@it-enterprise.co.uk
  Subject: [JDBC] Encoding


    Hiya,

    I was 2 months ago using the sourceforge JDBC driver on WinNt as client
and HP-UX as server (so PostgresQl) server. At time I had problems with the
extented ASII set, all the characters were converted to "?". So I switched
to the org.postgresql.Driver and problem seems to be solved.
    Now 2 months later we have to go into production and the target OS is
Debian Linux for client and server. And guess what I can see the same
problem, all characters belonging to the extented set are converted to "?".

    I have written a small testprogram, create one connection and tries to
insert data with Java and JDBC. This seems not to work. But .... if I insert
data with psql -h ... -f insertcommandfile.sql and look then in the database
then there is no problem at all. Extented Characters are inserted. So I
suppose the Db is correctly configured. (eg client-encoding and server
encoding).
    I have seen that ages ago the JDBC driver had problems with encoding but
this was solved I thought.
    I'm testing with this character: é, but also other characters has the
same problem.

    I need help .... Real help ...

    Kind regards,

    Thomas De Vos
    IT Enterprise Ltd
    Phone:  00 44 (0)127 650 5385
    Mobile: 00 44 (0)777 990 7717
    ThomasDeVos@it-enterprise.co.uk

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

* Encoding
@ 2006-07-07 18:40  Charles Curi <charles.curi@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Charles Curi @ 2006-07-07 18:40 UTC (permalink / raw)
  To: pgsql-jdbc

Hi people.
What can I do to change the encoding of my data base from "asc-ii" to
"utf-8"?
Thank you.
Charles

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

* Re: Encoding
@ 2006-07-07 20:08  Mark Lewis <mark.lewis@mir3.com>
  parent: Charles Curi <charles.curi@gmail.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Mark Lewis @ 2006-07-07 20:08 UTC (permalink / raw)
  To: Charles Curi <charles.curi@gmail.com>; +Cc: pgsql-jdbc

Dump the data, drop the database, recreate with utf-8, reimport.
-- Mark

On Fri, 2006-07-07 at 15:40 -0300, Charles Curi wrote:
> Hi people.
> What can I do to change the encoding of my data base from "asc-ii" to
> "utf-8"?
> Thank you.
> Charles



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


end of thread, other threads:[~2006-07-07 20:08 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-12-10 09:59 Encoding rasejo <rasejo@hotmail.com>
2001-12-10 19:28 ` Dave Cramer <dave@fastcrypt.com>
2001-12-10 13:39 FW: Encoding raymund <rasejo@amazing-lifestyles.com>
2002-05-06 19:58 Encoding Thomas De Vos <devos_thomas@yahoo.co.uk>
2002-05-08 16:48 ` Thomas De Vos <devos_thomas@yahoo.co.uk>
2002-05-09 16:47   ` Ryan Chambers <ryan@squaretrade.com>
2006-07-07 18:40 Encoding Charles Curi <charles.curi@gmail.com>
2006-07-07 20:08 ` Mark Lewis <mark.lewis@mir3.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