Hi everybody, I'm using Lazarus 1.2.6 and W7.
This is my problem:
In my program I have this:
procedure TForm1.FormCreate(Sender: TObject);
var
fichero: TStringList;
begin
fichero:= TStringList.Create;
try
fichero.LoadFromFile(UTF8ToAnsi(ExtractFilePath(Application.ExeName)+'app.cfg'));
Memo1.Lines.Assign(fichero);
finally
fichero.Free;
end;
end;
"exe" file and "cfg" file are in the same folder.
If this folder not contains accentuated letter as"ó" it works fine.
If I change the folder name to "Aplicación", program gives message error to open file.
This code in linux works fine.
Can you help me?.
Thanks. Excuseme my poor english