Problem with LATIN2 encoding

From: Ryszard Lach <rla(at)id(dot)pl>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Problem with LATIN2 encoding
Date: 2002-07-12 18:29:47
Message-ID: 20020712182947.GB17376@siaco.id.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


Hi!

I thing I've read almos all documents possible to find using google
about character encoding and Java applications. Please, help me to
understand why my strings are not inserted to database correctly.

I'm using database in LATIN2 character set, postgresql7.2,
postgresql-7.2.jar, postgresql compiled with multibyte enabled (the
default configuration in Debian), application is a servlet running under
Tomcat4.0.3, jdk1.3.1 from Sun.

My database connection url contains 'charSet=LATIN2', but I'm not sure
if it should be encoding of the database. If yes, then client (JVM
running the servlet) working in UTF-8 should perform 'set
client_encoding to UNICODE' before running any inserts to inform
database engine about conversions, which it should perform, right ?

I suppose not, because it doesn't work, the field in the database is
being filled with question marks instead of every non-ASCII character.

Can anybody help me ?

regards,

Richard.

--
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2002-07-12 20:19:16 Re: Problem with LATIN2 encoding
Previous Message David A. Bartmess 2002-07-12 05:17:12 Re: Date time problem with timstamp with no timezone data