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

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
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 08:58:35
Message-ID: 1056358716.24694.5.camel@coppola.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jean-Christian Imbeault 2003-06-23 09:36:04 Re: Problems with writing EUC-JP/Unicode to console or file
Previous Message Adonis 2003-06-23 06:43:33 ENC: Client_encoding