Character problem using postgre
Posted: 30.10.2009, 05:11
I use Postgre with
ENCODING = UTF8
LC_CTYPE = French_Canada.1252
In pgAdmin the accent é,è seems to be saved correctly.
When i read the value in Delphi 2009 using Zeos like this
QueryTable.Fields[1].AsString
I get faulty charaters for the accent.
I've tried QueryTable.Fields[1].AsAnsiString but I get the same results.
If I set
ENCODING = WIN1252
LC_CTYPE = French_Canada.1252
I can see the faulty charaters in pgadmin.
Thanks for your help
ENCODING = UTF8
LC_CTYPE = French_Canada.1252
In pgAdmin the accent é,è seems to be saved correctly.
When i read the value in Delphi 2009 using Zeos like this
QueryTable.Fields[1].AsString
I get faulty charaters for the accent.
I've tried QueryTable.Fields[1].AsAnsiString but I get the same results.
If I set
ENCODING = WIN1252
LC_CTYPE = French_Canada.1252
I can see the faulty charaters in pgadmin.
Thanks for your help