RecordSets, getString and charSets

From: Rosa Maria Carro Salas <rosa(dot)carro(at)ii(dot)uam(dot)es>
To: postgres <pgsql-general(at)postgresql(dot)org>, pos2 <pgsql-novice(at)postgresql(dot)org>
Subject: RecordSets, getString and charSets
Date: 2001-01-11 17:11:20
Message-ID: 3A5DE938.865F8871@ii.uam.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

Hello,

I have a problem with recordsets and charsets.

I have inserted some data into a postgresql database including spanish
characters. When I execute pgsql and I run some select queries, I get
the data in the right way, with the spanish characters I inserted.

But when I execute the same queries from a Java program using a JDBC
connection, I obtain different (non-spanish) characters after calling
the getString method to get the data from the recordSet.

I have tried different ways of getting the data from the recordSet, such
as inserting the data into a stream (calling the getAsciiStream,
getUnicodeStream and getBinaryStream methods) and converting the data
into bite[] and then to String, but the same happens.

Does anybody knows what can I do to solve this problem?

Thanks and regards,
Rosa M. Carro

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-01-11 17:38:01 Re: Re: Loading optimization
Previous Message Joel Burton 2001-01-11 17:09:57 RE: How to see a RULE definition?

Browse pgsql-novice by date

  From Date Subject
Next Message Mario Snchez 2001-01-11 18:15:32 POSTGRES TOO SLOW
Previous Message Joel Burton 2001-01-11 16:35:42 Re: Relationships