Can some help me with the right way to correctly display UTF-8 unicode string ?
I am calling a procedure that receives a text string from web service. The procedure works fine a string is received perfectly. However, since the string contains an UTF-8 text, it displays unicode letters as numbers ...
{"displayName":"\u062a\u0637\u0628\u064a\u0640\u0640\u0640\u0642 \u062f\u0639\u0640\u0640\u0640\u0640\u0640\u0627\u0621"
Delphi Berlin should support UTF-8 but I do not which function to use for encoding the UTF-8 and display the Text (Arabic Text) !!
Procedure TF_Main.GnipHTTPSTransfer(Sender: TObject; Direction: Integer; BytesTransferred: Int64; PercentDone: Integer; Text: String);
Begin
Inc(Transfer_Count);
L_Counter.Caption:=IntToStr(Transfer_Count);
write(GNIP_Text_File, Text);
M_Memo.Lines.Add(text);
End;