P
P
Polim2015-01-15 20:25:22
Delphi
Polim, 2015-01-15 20:25:22

How to convert octal UTF-8 to Text?

It is necessary to transcode in Delphi (XE5), the UTF-8 octal representation (\320\241) into text so that it can be displayed in Memo.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kalapanga, 2015-01-16
@Polim

Polim : In general, this is how the desired letter 'C' is obtained from bytes:
var
S: RawByteString;
begin
SetLength(S,2);
S[1] := AnsiChar($D0);
S[2] := AnsiChar($A1);
Edit1.Text := UTF8ToString(S);
end;

X
xmoonlight, 2015-01-15
@xmoonlight

here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question