A: 

I need more information before answer your question.

  1. What database you use?
  2. What is the encoding setting for the field you store the chinese characters?

You may paste the table's DDL here for further discussion.

Chau Chee Yang
Hi Mr Chau,1) Im using ClientDataset standalone without any data provider.2) We are expecting that the result should be same for TEdit and TDBEdit. Isn't it D2010 a Native Unicode ?type TForm1 = class(TForm) ClientDataSet1: TClientDataSet; ClientDataSet1Name: TStringField; ClientDataSet1Description: TMemoField; DataSource1: TDataSource; ClientDataSet2: TClientDataSet; ClientDataSet2Name: TStringField; ClientDataSet2Description: TMemoField; DataSource2: TDataSource;
James
A: 

Hi Mr Chau,

1) Im using ClientDataset standalone without any data provider.

2) We are expecting that the result should be same for TEdit and TDBEdit. Isn't it D2010 a Native Unicode ?

it is just a simple standalone ClientDataset as follow:


type TForm1 = class(TForm)

ClientDataSet1: TClientDataSet;

ClientDataSet1Name: TStringField;

ClientDataSet1Description: TMemoField;

DataSource1: TDataSource;

ClientDataSet2: TClientDataSet;

ClientDataSet2Name: TStringField;

ClientDataSet2Description: TMemoField;

DataSource2: TDataSource;

James
James, use the Add comment facility to respond to questions, or edit your original to add more info. Don't answer with a new answer as it is answering your own question.
mj2008
+1  A: 

In Delphi 2010, TStringField and TMemoField's value property is of type AnsiString. That is the reason why the Chinese characters doesn't show in the data aware controls.

Instead, you should declare the field type as ftWideString or ftWideMemo to create TWideStringField and TWideMemoField respectively.

Chau Chee Yang
Thank you so much, I will try this
James