yarek
asked on
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 !
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 !
can You mail me mot.txt ?
ASKER
you can find it at:
http://82.225.228.89/yarek/mot2.txt
http://82.225.228.89/yarek/mot2.txt
As I've expected it's UTF-8.
Try something like this.
memo1.Lines.LoadFromFile(' mot2.txt') ;
memo1.Lines.Text := utf8toansi(memo1.Lines.Tex t);
Try something like this.
memo1.Lines.LoadFromFile('
memo1.Lines.Text := utf8toansi(memo1.Lines.Tex
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can try also utf8decode
ASKER
(I need Tstrings, Tstringlist, Twidestring)...