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

From Csaba Nagy
Subject Re: Problems with writing EUC-JP/Unicode to console or file
Date
Msg-id 1056358716.24694.5.camel@coppola.ecircle.de
Whole thread Raw
In response to Problems with writing EUC-JP/Unicode to console or file  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
List pgsql-jdbc
This sounds like your terminal can't display that character. Depending
on your OS/terminal you use, you might or might not be able to change
the character encoding used by the terminal so it can correctly display
that character. For example on my Linux box I can switch to UTF-8
encoding setting: "LANG=en_US.UTF-8", and then even vi will use UTF-8 as
character encoding. OTOH, EUC-JP is not supported, so I can't see your
character...

Cheers,
Csaba.

On Mon, 2003-06-23 at 08:20, Jean-Christian Imbeault wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>



pgsql-jdbc by date:

Previous
From: Jean-Christian Imbeault
Date:
Subject: Problems with writing EUC-JP/Unicode to console or file
Next
From: Jean-Christian Imbeault
Date:
Subject: Re: Problems with writing EUC-JP/Unicode to console or file