Zeos 6.5.1 and MySQL 5.1 - charset confusion

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Zeos 6.5.1 and MySQL 5.1 - charset confusion

Post by zippo »

Hello!

I need some help about MySQL 5.1 and character set.. :oops:

I use Slovenian charset (cp1250) in my apps, but the problem is i get special characters as "?" (a question mark) regardless to the server charset setting...

Any ideas on how to obtain "normal" strings?
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post by zippo »

problem almost resolved! :)

Just needed to retype the values in the application.

But there's still a strange thing - If I enter the field values in another program (example MySQL Query browser) the special chars are still "?"...
designshouse
Fresh Boarder
Fresh Boarder
Posts: 20
Joined: 21.11.2005, 10:13
Location: Pieštany
Contact:

Post by designshouse »

i have the same problem. Any ideas ?
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post by zippo »

Inset the values from your application.. Fast and dirty, but when there's no time...
designshouse
Fresh Boarder
Fresh Boarder
Posts: 20
Joined: 21.11.2005, 10:13
Location: Pieštany
Contact:

Post by designshouse »

Zconnection component has property with name Properties. Put there this "Codepage=cp1250"

Codepages

Codepages will be determined by setting parameter "lc_ctype" or "Codepage" in TZConnection. This parameter must be added to the property Properties. E. g.:

delphi:
ZConection.Properties.Add ('lc_ctype=ISO8859_1');

or

ZConnection.Properties.Add ('Codepage=ISO8859_1');

Sorry for my english :-)
User avatar
dhongu
Junior Boarder
Junior Boarder
Posts: 37
Joined: 28.09.2005, 08:37
Location: Bucuresti
Contact:

Post by dhongu »

Look at [ 1176107 ] Patch for MySQL 4.1 Character Set
http://sourceforge.net/tracker/index.ph ... tid=415826
Post Reply