PostgreSQL : unicode issue with errors messages

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

PostgreSQL : unicode issue with errors messages

Post by swierzbicki » Sat 14 Jan 2012 14:55

Hello,

Here is the kind of error message I'm getting :
First chance exception at $7553D36F. Exception class EUniError with message
'Cannot connect to database
aucune entr�e dans pg_hba.conf pour l'h�te � 192.168.1.14 �, utilisateur � postgres �,
base de donn�es � myCRM �, SSL inactif'.
Process myCRM.exe (2020)
All special caracters (éàö...) are displayed like this : �

I've tried to set the unicode option to true but this doesn't helps.

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Sat 14 Jan 2012 18:32

Setting charset to ISO-8859-1 solved the issue.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Mon 16 Jan 2012 13:49

Hello,

You are right, if your encoding differs from the server one, then you should set the charset property correctly for correct representation of special symbols

Post Reply