mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user