#1 Re: mORMot 1 » AddValue of TDocVariant Data Chinese garbled characters » 2024-10-13 12:27:49

Thank you for your reply

Embarcadero Delphi for Win64 compiler version 35.0

You're right, just garbled in the debugger  and placed it in a string variable, that's correct.

#2 mORMot 1 » AddValue of TDocVariant Data Chinese garbled characters » 2024-10-13 04:41:40

pangzhenguang
Replies: 3

The method AddValue of the TDocVariant object displays Chinese garbled characters when adding a Chinese string

I will write a simple program

version 1.18

procedure TForm1.Button1Click(Sender: TObject);
var
  lItem: TDocVariantData;
begin
  lItem.InitFast;
  lItem.AddValue('Caption','哪个数据库');
end;


in debugger the lItem value is :

(271, [dvoIsObject,dvoReturnNullForUnknownProperty,dvoValueCopiedByReference], ('Caption', '', '', ''), ('鍝釜鏁版嵁搴'#$93, Unassigned, Unassigned, Unassigned), 1)

would you help me

Board footer

Powered by FluxBB