Skip site navigation (1) Skip section navigation (2)

Re: RecordSets, getString and charSets

From: Rosa Maria Carro Salas <rosa(dot)carro(at)ii(dot)uam(dot)es>
To: Albert Reiner <areiner(at)tph(dot)tuwien(dot)ac(dot)at>
Cc: pos2 <pgsql-novice(at)postgresql(dot)org>
Subject: Re: RecordSets, getString and charSets
Date: 2001-01-12 16:12:59
Message-ID: 3A5F2D0B.CFADDF87@ii.uam.es (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
Where can I find the postgresql settings and the locale settings?
How can I modify them?
Thanks,
Rosa M. Carro

Albert Reiner wrote:

> Are you sure your Java program is started with the same locale settings?
>
> On Thu, Jan 11, 2001 at 06:11:20PM +0100, Rosa Maria Carro Salas wrote:
> > 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
> >
> >
>
> --
>
> --------------------------------------------------------------------------
> Albert Reiner                                   <areiner(at)tph(dot)tuwien(dot)ac(dot)at>
> Deutsch       *       English       *       Esperanto       *       Latine
> --------------------------------------------------------------------------


In response to

pgsql-novice by date

Next:From: Barry StewartDate: 2001-01-12 16:40:02
Subject: Re: Pg subtracts one minute from time
Previous:From: Tom LaneDate: 2001-01-12 16:00:35
Subject: Re: Pg subtracts one minute from time

pgsql-general by date

Next:From: Thomas T. ThaiDate: 2001-01-12 16:16:10
Subject: mnogosearch -- pgsql seem so slow, please help me find out why
Previous:From: Peter GubisDate: 2001-01-12 15:56:27
Subject: postgres replication

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group