My second ever unicode issue, and the first since Lazarus 0.9. Things have changed and I haven't kept up :-( Knew it would bite me one day.
I have simplified an issue in my software down to the following code
Procedure TForm1.Button1Click(Sender: TObject);
Var
oTemp: TStringList;
Begin
oTemp := TStringList.Create;
oTemp.Add('-15µV/cm');
oTemp.SaveToFile('C:\TEMP\Test.html');
oTemp.Free;
End;
If I open Test.html in notepad, I see the correct text.
If I open Test.html in firefox (latest) or IE (ancient) I see incorrect text: -15µV/cm
I know nothing about file or character encoding. Is there some flag I need to set on TStringList to get this working?
I'm also not sure what info I need to provide. Lazarus SVN 58055, fpc 3.0.4. Windows 7 set to Australia settings. Anything else?
So yeah. Help :-)
Many thanks
Mike