TDbGrid Postgre
Posted: 05.06.2009, 09:07
HI,
I have problems when I read special characters like "ä", "Ü", "Ö" from my postgre Database and show the read texts on a DbGrid-component.
The TDbGrid-component is UnicodeString based, but the data in the TDataSource->TDataSet are UTF8 coded. So there is a problem when showing the data in DbGrid.
A single utf8 - string from database can be converted to unicodestring by unsing the "UTF8ToUnicodeString" function. So there is no problem to show the texts in a TDbLabel, but how can I solve the problem with the TDbGrid?
Thanks
Marcus
I have problems when I read special characters like "ä", "Ü", "Ö" from my postgre Database and show the read texts on a DbGrid-component.
The TDbGrid-component is UnicodeString based, but the data in the TDataSource->TDataSet are UTF8 coded. So there is a problem when showing the data in DbGrid.
A single utf8 - string from database can be converted to unicodestring by unsing the "UTF8ToUnicodeString" function. So there is no problem to show the texts in a TDbLabel, but how can I solve the problem with the TDbGrid?
Thanks
Marcus