Unicode in D2009 TDBGrid problem
Posted: Mon 13 Oct 2008 20:45
Hi
currently I'm evaluating IBDac 2.70.0.40, using Delphi 2009 Pro and have got an issue within a TDBGrid with a Firebird 2.1 database.
I've created a new form, placed a TIBConnection component on it, set up the option Charset := UTF8, UseUnicode := True.
I've placed a TIBCTable, a TIBCDataSource and a TDBGrid on the form.
The database just contains one table with two fields (for testing purposes). Each field is created with UTF8.
I've started the application from the IDE, added a new record in the grid and inserted some Chinese characters in both fields. This works very well.
When leaving the application and return to the IDE, I don't see those Chinese characters any more (of course the connection is still active). The grid just shows some '????' instead. ANSI characters seem to work well, in the IDE and during run time.
When running the application again, I get the Chinese text again.
So what did I made wrong?
currently I'm evaluating IBDac 2.70.0.40, using Delphi 2009 Pro and have got an issue within a TDBGrid with a Firebird 2.1 database.
I've created a new form, placed a TIBConnection component on it, set up the option Charset := UTF8, UseUnicode := True.
I've placed a TIBCTable, a TIBCDataSource and a TDBGrid on the form.
The database just contains one table with two fields (for testing purposes). Each field is created with UTF8.
I've started the application from the IDE, added a new record in the grid and inserted some Chinese characters in both fields. This works very well.
When leaving the application and return to the IDE, I don't see those Chinese characters any more (of course the connection is still active). The grid just shows some '????' instead. ANSI characters seem to work well, in the IDE and during run time.
When running the application again, I get the Chinese text again.
So what did I made wrong?