Problems with writing EUC-JP/Unicode to console or file - Mailing list pgsql-jdbc

From Jean-Christian Imbeault
Subject Problems with writing EUC-JP/Unicode to console or file
Date
Msg-id 3EF69C1C.8070905@mega-bucks.co.jp
Whole thread Raw
Responses Re: Problems with writing EUC-JP/Unicode to console or file  (Csaba Nagy <nagy@ecircle-ag.com>)
List pgsql-jdbc
I'm having trouble writing a particular character to a file or even to
the console. The character in question is the japanese double-width "-"
symbol (in japanese font 'ー').

When I read the data from the pg database, encoded in EUC-JP, and
display it in a GUI text field it is displayed properly. However if I
try and write it to the console using System.out.println() or to a file
using FileWriter.write() the character comes out as a '?'.

I am using a the newest version of postgres, 7.3.3, but a slightly old
driver, pgidbc2.jar.

Is this a problem with the driver, Java, or the way I am trying to
print/write out the data?

Any help or advice is greatly appreciated!

Thanks,

Jean-Christian Imbeault


pgsql-jdbc by date:

Previous
From: "zhuj"
Date:
Subject: Re: maxconnection
Next
From: Csaba Nagy
Date:
Subject: Re: Problems with writing EUC-JP/Unicode to console or file