Tmemo HTML souce and french accents lost

I have a simple HTML that I got from Twebbrowser.

I have saved it as mot.txt


when I load it with Tstringlist.loadfromfile or with memo1.lines.loadfromfile
accents get lost:

À propos de Google->À propos

or
Actualités->Actualités


I need to to get the good accents

(I tried for hours with ANSI/WIDECHAR/UNICODE) translation: no way !
yarekAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yarekAuthor Commented:
PS. I can get load them successfully with TRicheditor, but what I need is to load without any VISUAL components
(I need Tstrings, Tstringlist, Twidestring)...
0
mokuleCommented:
can You mail me mot.txt ?
0
yarekAuthor Commented:
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

mokuleCommented:
As I've expected it's UTF-8.
Try something like this.

  memo1.Lines.LoadFromFile('mot2.txt');
  memo1.Lines.Text := utf8toansi(memo1.Lines.Text);
0
mokuleCommented:
or better

var
  s: utf8string;
  fs: TFileStream;
begin
  fs := TFileStream.Create('mot2.txt',fmOpenRead);
  SetLength(s,fs.Size);
  fs.Read(Pointer(s)^,fs.Size);
  fs.Free;
  memo1.Lines.Text := utf8toansi(s);
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mokuleCommented:
You can try also utf8decode
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.