Another UTF8 problem (with SQLite this time)

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
jeremicm
Senior Boarder
Senior Boarder
Posts: 61
Joined: 18.10.2006, 17:07
Contact:

Another UTF8 problem (with SQLite this time)

Post by jeremicm »

In my tries to find solution to previous utf problem, i came around another one... I have SQLite3 table with 4 text fields. When i try to enter "зщшгн РОЛДЖ" (random russian characters) in it, in database, i see all characters, but in grid or any components that show data from table, i see only lot's of ????? characters (question marks)...

When i try with east europe latin characters (ždšćč ŽÐŠĆČ) i see ŽÐŠCC ždšcc, and again, in database everything is ok...

any ideas or solutions for this?

thanks in advance
Martin
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Post by Wild_Pointer »

Hello jeremicm,

I guess you are not using unicode components. Please try TNT components or similar (or have delphi XE + that supports unicode out of the box).

Good luck!
jeremicm
Senior Boarder
Senior Boarder
Posts: 61
Joined: 18.10.2006, 17:07
Contact:

Post by jeremicm »

i already use xe2 with upd1 and latest zeos svn...
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Post by Wild_Pointer »

have you set codepage=utf8 in properties of tzconnection ?

[update]
by writing "latest zeos" you meen 6.6.6 (stable) or 7.0 (beta)?
jeremicm
Senior Boarder
Senior Boarder
Posts: 61
Joined: 18.10.2006, 17:07
Contact:

Post by jeremicm »

codepage=utf8 is set, and i'm using 7.0 zeos from svn...
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Post by Wild_Pointer »

Hello, jeremicm,

I'm going to try XE2 these days, so I'll look into your problem too. Right now I have no ideas what else could be wrong.
mrLion
Senior Boarder
Senior Boarder
Posts: 71
Joined: 20.03.2010, 10:17

Post by mrLion »

jeremicm, in windows server use codepage=win1251. also if you DB use UTF8! threefore stil problem with russian codepage: write with use params SQL store in DB ????.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

jeremicm,

I've detected some mistakes on the String-casts. I think i've solved this all in my private branch \testing-egonhugeist..

the "how to" you'll find here http://zeos.firmos.at/viewtopic.php?t=3427

please read carefully...

best regards
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked