Issue #1744: load stored tab file contents always with UTF-8 encoding, to prevent a wrong encoding per auto detection.

This commit is contained in:
Ansgar Becker
2023-01-07 13:22:24 +01:00
parent 4fd9b87767
commit 0c0bb6db54

View File

@@ -2507,7 +2507,7 @@ begin
if FileExists(Filename) then begin
Tab := GetOrCreateEmptyQueryTab(False);
Tab.Uid := Section;
Tab.LoadContents(Filename, True, nil);
Tab.LoadContents(Filename, True, UTF8NoBOMEncoding);
Tab.MemoFilename := Filename;
if not TabCaption.IsEmpty then
SetTabCaption(Tab.TabSheet.PageIndex, TabCaption);