Charset and encoding - Mailing list pgsql-novice

From Rosa Maria Carro Salas
Subject Charset and encoding
Date
Msg-id 3AF911D0.EF3997FC@ii.uam.es
Whole thread Raw
Responses Re: [GENERAL] Charset and encoding
List pgsql-novice
Hello,

    I have defined a database with the encoding SQL_ASCII. I fill the
database by using embedded SQL. When I insert the value "Señales", it is
correctly inserted. I read the correct value by typing the query in
postgres, but when I access this database from a Java program, via JDBC,
I obtain the value "Seqales". The LANG variable is set to "es_ES"
(spanish) which I suppose is OK.

    I have changed this database encoding to LATIN1 and set the client
characterset to LATIN1 by typing  \encoding LATIN1.

    Now when I access the data from postgres interface I obtain
"Se(82f1)ales", and when I get the value through the Java program, I
obtain
"Se ñales".

    Does anybody knows what is happening? Where can I find information
about this?
    Thanks in advance,
    Rosa M. Carro



pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problems with installing with perl interface
Next
From: "Eric Naujock "
Date:
Subject: Looking for good reference materials for SQL programming.