Jump to content
Sign in to follow this  
Moreno

Migrating DBExpress to Firedac

Recommended Posts

Hello, 

our Company is migrating from DBExpress to FireDAC but we found a strange behavior.

 

In DBExpress we put in DBXConnections Characterset=UTF8 and everything was fine, now in FireDAC we did the same but the result of our query seems to ignore the characterset.

 

If we manually decode the results are ok, but it feel strange.

 

Are we missing something?

 

 

image.thumb.png.a84a5f571dd4dcb56afeadb47c02511a.pngimage.thumb.png.543af9b9fae8364c435e3cec7f193bd7.pngimage.thumb.png.0179dc4e982fd123b6588bf1cca2e3d6.png

Share this post


Link to post

I cannot see the part where FDQuery actually makes use of the pooled connection montetest.

Share this post


Link to post
Guest

I thought (i still think) that a DAC connection "charset" property is for creating a DB. When you open a DB, the (firebird) charset is read. If FireDAC is correct, the dfm setting when opening the DB should be overwritten with the DBs charset. HTH.

Share this post


Link to post

If we change the charset of the fields on the database the values are displayed well with FireDAC and DBX.

 

We tried to change characterset on FireDAC and nothing changed, probably it's just as you said, the charset is read from the database. 

Share this post


Link to post
Guest

if Firebird you can use "charset xxxx  collation zzzz " on:

  • Create;
  • Column use (select, update, insert, order by, where... etc...) if necessary (it can be distinct of "create db/tables" definition"

more http://www.destructor.de/firebird/charsets.htm

Edited by Guest

Share this post


Link to post

Hi,

Suggestion : in the archive, don't put GDB file but a backup (fbk) of the database

Unfortunately, I have no Firebird 4 installed (well running to be clear)  to check 

Share this post


Link to post
Guest

MSWindows +10 had conflict with "GDB" file extension with Firebird

Share this post


Link to post

Yes but easy to override. GDB for MSWindows is sort of backup if in "MS folders". 
But, aware of that I effectively use fdb or fb extension for my databases

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×