From 0c0bb6db54119be23b46477fc148b87502209efb Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 7 Jan 2023 13:22:24 +0100 Subject: [PATCH] Issue #1744: load stored tab file contents always with UTF-8 encoding, to prevent a wrong encoding per auto detection. --- source/main.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.pas b/source/main.pas index cd85bd71..9961e86b 100644 --- a/source/main.pas +++ b/source/main.pas @@ -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);