Re: Encoding issue (utf8): different strings received from java than from PGAdmin

From: "Marc Mamin" <M(dot)Mamin(at)intershop(dot)de>
To: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Encoding issue (utf8): different strings received from java than from PGAdmin
Date: 2007-04-11 08:12:14
Message-ID: CA896D7906BF224F8A6D74A1B7E54AB301750A21@JENMAIL01.ad.intershop.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


Thank you for your tip,
This was an issue with our java compiler which did not interprete the
source code being utf8.

Marc Mamin

-----Original Message-----
From: Albe Laurenz [mailto:all(at)adv(dot)magwien(dot)gv(dot)at]
Sent: Friday, April 06, 2007 9:39 AM
To: Marc Mamin; pgsql-jdbc(at)postgresql(dot)org
Subject: RE: [JDBC] Encoding issue (utf8): different strings received
from java than from PGAdmin
I tried, but cannot reproduce your problem.

Try to examine all the strings involved with 'od -c' and see where your
results differ from mine:

'od -c' on my Test.java and Test.class contain:

s e l e c t r a i s e c o d e
( ' $ 302 247 K 303 274 302 247 $ ' )

'od -c' on my log file contains:

r a i s e c o d e o u t p u t
: $ 302 247 K 303 274 302 247 $ \n

Is it the same for you?

Yours,
Laurenz Albe

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2007-04-11 08:21:38 random escape function
Previous Message Kris Jurka 2007-04-11 07:53:35 Re: Small addition to PGInterval