Re: Problems with writing EUC-JP/Unicode to console or file

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
Cc: Postgres JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Problems with writing EUC-JP/Unicode to console or file
Date: 2003-06-23 09:55:02
Message-ID: 3EF6CE76.60907@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Csaba Nagy wrote:
> I suspect that your machine's default encoding and the encoding used by
> your Java program doesn't match.

[snip]

>i.e. explicitly tell to your Java
> writer code what encoding to use, and explicitly tell to the editor what
> encoding to use when opening the file. Otherwise they'll use their
> default encodings, which might not match.

Very true. I'll look up how to specify the encoding when writing to
file. I don't know that it is possible when writing to the console though.

*But* I must point out that I am writing quite a bit of data, in
japanese, to file and the console and *all* of it come out correctly
*except* for that one character ...

I *will* check into how to specify the encoding but I don't think that
is the problem as everything but the one character comes out out right.
And as I had said, if I hard-code the string to be printed it comes out
right ... only when the string is retrieved from the database does it
come out wrong ...

Thanks,

Jean-Christian Imbeault

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Thomas O'Dowd 2003-06-23 10:53:32 Re: Problems with writing EUC-JP/Unicode to console or file
Previous Message Csaba Nagy 2003-06-23 09:50:20 Re: Problems with writing EUC-JP/Unicode to console or file