Einzelnen Beitrag anzeigen

WalkingAway

Registriert seit: 12. Mär 2024
4 Beiträge
 
Delphi 12 Athens
 
#1

Unicode in DBGrid is not displayed correctly

  Alt 9. Okt 2024, 07:37
Delphi-Version: 5
Hi there!
I have very strange problem. Data from SQL server in Delphi Athens doesn't respect Unicode.

ClientDataSet1.FieldDefs[0].DataType is ftWideString

ShowMessage(TСlientDataSet1.FieldByName('Name').As String); //Shows correctly - "ÖФ"
ShowMessage(DataSource1.DataSet.FieldByName('Name' ).AsString); //Shows correctly - "ÖФ"

In DBGrid I see wrong chars. Where from this problem is?

THank you in advance.
  Mit Zitat antworten Zitat