character sets and results

From: Graham Leggett <minfrin(at)sharp(dot)fm>
To: Postgresql JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: character sets and results
Date: 2002-03-14 10:41:34
Message-ID: 3C907E5E.6569AE26@sharp.fm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi all,

I have been asked to fix a piece of code that submits queries to a
database, and returns string data that could possibly contain characters
with accents.

When the code returns the data (using standard SQL select statements)
the accented characters are replaced with a "?" character.

I have some other code which works correctly using the same select
statements, however in the other code a third party class is being used
to handle the database connections - I assume therefore that the
character sets being used are somehow specified on connection.

I have been trawling the postgresql-jdbc docs some for dome kind of
explanation on how to correctly handle different character sets, however
I have had no luck. Can anyone shed some light? Am I looking in the
right place?

Regards,
Graham
--
-----------------------------------------
minfrin(at)sharp(dot)fm "There's a moon
over Bourbon Street
tonight..."

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Alaric B Snell 2002-03-14 11:08:57 Re: character sets and results
Previous Message Kris Zawadka 2002-03-14 09:50:28 Last Inserted row.