I have a webpage "index.html" built with Expression Web 4 containing a value delimited with an id :
<html>
<head></head>
<body>
<... some html code ...>
<!--MYVALUEID-->
Dernières News
<... some html code ...>
</body>
</html>
With my delphi application i load the page in TStringList and read the value to a TEDIT :
S:=TStringList.Create;
S.LoadFromFile('path\index.html');
Edit1.Text:=S[S.IndexOf('<!--MYVALUEID-->')+1];
S.Free;
The problem is the accent char because i got this in the TEDIT : "Dernières News"
In Expression Web code the text is correct : Dernières News
When i open index.html in notepad it show : Dernières News
The file in notepad is shown as UTF8
When using HTTPApp.HTMLDecode() i got : Dernières News
And with System.NetEncoding,TNetEncoding.HTML.Decode also : Dernières News
Is there a reliable routine to decode html special char conversion ?
I checked many question in SO and tried the solutions as mentionned above but nothing happens.
Thanks in advance, i m stuck.
System.NetEncoding.TNetEncoding, which didn't exist until Delphi XE7