Strange characters

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
WorldWalker
Junior Boarder
Junior Boarder
Posts: 25
Joined: 10.10.2009, 18:57

Strange characters

Post by WorldWalker »

Hi,

I am using a db with character ENCODING = 'Latin9', and when I post a string including special characters (latin9) they are converted to strange ones.
Postgres 8.4.1
D2010 Pro
Zeos Rev.716
Did someone faced that before?
Thanks.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Can't you switch the client encoding to UTF8, leaving the conversion to the db client/server protocol? Don't know enough about postgres, but that would be a possible solution with mysql.

Mark
Image
WorldWalker
Junior Boarder
Junior Boarder
Posts: 25
Joined: 10.10.2009, 18:57

Post by WorldWalker »

Hi,
I've just tried this, it didn't work neither.

Thank you again.
MaGNa
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 01.04.2008, 13:43

Post by MaGNa »

Hi!
I have the same problem, a table with fields to varchar with collation "utf-8" and when keeping any text from Delphi, for example "ESPAÑA" it keeps "ESPAÑ", or "Varón" it keeps "VarÃÂ".

They can indicate like solving it to me? Thanks
KDeveloper2
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 12.01.2010, 08:41

Post by KDeveloper2 »

any news here to solve this problem?
yapt
Junior Boarder
Junior Boarder
Posts: 26
Joined: 17.06.2008, 20:32

Post by yapt »

On the ZConnection.Properties, add this:

codepage=UTF8

Or on the ZConnection BeforeConnect Event:

Code: Select all

procedure TForm1.ZConnection1BeforeConnect(Sender: TObject);
begin
  ZConnection1.Properties.Add('codepage=UTF8');
end;
Please, let me know if that runs as expected...
KDeveloper2
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 12.01.2010, 08:41

Post by KDeveloper2 »

Hi,
thanks for response, i´ve already add these property but it doesn´t work in mysql.
Any other idea?
yapt
Junior Boarder
Junior Boarder
Posts: 26
Joined: 17.06.2008, 20:32

Post by yapt »

I was speaking about PostgreSQL only. I don't know almost anything about MySQL.

Regards..
olivdaum
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 11.05.2010, 12:53
Location: France

Post by olivdaum »

Hello,
I'm new in this discussion but not with the problem.
I have the same problem with PostgreSQL.

I tried a lot of things, and
codepage=UTF8 into ZConnection.Properties doesn't work, neither into ZConnection BeforeConnect Event.
Does some body have a new idea please ? :wallb:

Thank you.
Locked