有人可以帮助我正确显示 UTF-8 unicode 字符串吗?
我正在调用一个从 Web 服务接收文本字符串的过程。该程序运行良好,一个字符串被完美接收。但是,由于字符串包含 UTF-8 文本,它会将 unicode 字母显示为数字...
{"displayName":"\u062a\u0637\u0628\u064a\u0640\u0640\u0640\u0642 \u062f\u0639\u0640\u0640\u0640\u0640\u0640\u0627\u0621"
Delphi Berlin 应该支持 UTF-8 但我不使用哪个函数来编码 UTF-8 并显示文本(阿拉伯文本)!
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;