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

Re: Special portuguese characters are not displayed in 08.00.01.02

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "Carlos Benkendorf" <carlosbenkendorf(at)yahoo(dot)com(dot)br>
Cc: <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Special portuguese characters are not displayed in 08.00.01.02
Date: 2005-10-31 16:17:22
Message-ID: 6EE64EF3AB31D5448D0007DD34EEB3417DD724@Herge.rcsinc.local (view raw or flat)
Thread:
Lists: pgsql-odbc
Using Delphi? try Zeos :-)
http://zeosforum.net.ms/
 
Zeos implements TDataSet which replaces the TTable/TDatabaase layer.
 
go to the above link and search on 'unicode'  I think this is your best shot for Unicode in the vcl. (although recent versions of the pg odbc driver have similar behavior to the old version if you don't want to switch off of odbc).
 
Merlin
 
________________________________

From: pgsql-odbc-owner(at)postgresql(dot)org [mailto:pgsql-odbc-owner(at)postgresql(dot)org] On Behalf Of Carlos Benkendorf
Sent: Monday, October 31, 2005 8:50 AM
To: pgsql-odbc(at)postgresql(dot)org
Subject: [ODBC] Special portuguese characters are not displayed in 08.00.01.02
 
Hello,
 
We were using ODBC driver 07.02.00.05 and now we are trying to use ODBC driver version 08.00.01.02 but portuguese special characters are not showed in the right way.
 
The database was created with encoding LATIN1, postgresql.conf with client_encoding = LATIN1 and we´re not using any command in the "Connect settings" field of the ODBC driver.
 
The following table is used for the tests:
 
CREATE TABLE empregado
(
  nome char(50)
) 
WITH OIDS;
 
 
DELPHI 7 SQL Explorer tool is used to emulate an application working with the table through ODBC. Using driver 07.02.00.05 all the data are showed right but when I changed to 08.00.01.02 the contents of column "nome" does not appear any more, only spaces.
 
If I use pgAdmin III and execute:
SET CLIENT_ENCODING = 'LATIN1';
SELECT * FROM EMPREGADO;
 
then all the characters are displayed in the right way, even those inserted by SQL Explorer tool.
 
It could be the DELPHI 7 SQL Explorer tool that is not working well, even so, with 07.02.00.05 the data could be displayed by the tool. 
 
Is it a ODBC driver error or maybe there is something wrong with DELPHI 7 SQL Explorer tool?
 
Does anybody know another simple way to emulate an application using the ODBC driver?
 
Thanks!!!
 
Benkendorf
 
________________________________

Promoção Yahoo! Acesso Grátis: a cada hora navegada você
acumula cupons e concorre a mais de 500 prêmios! Participe! <http://yahoo.fbiz.com.br> 

pgsql-odbc by date

Next:From: Jorge Redond FlamesDate: 2005-10-31 19:43:47
Subject: Postgres ODBC
Previous:From: Hélder M. VieiraDate: 2005-10-31 15:25:49
Subject: Re: Special portuguese characters are not displayed in 08.00.01.02

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