mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Always read portable settings file and imported settings file in UTF8 mode, instead of (falsely) auto-detecting the encoding. Fixes broken characters loaded from a portable file larger than the examined 16 (?) KB. See pm from FP.
This commit is contained in:
@ -4111,7 +4111,7 @@ begin
|
||||
raise Exception.CreateFmt('File does not exist: %s', [Filename]);
|
||||
end;
|
||||
|
||||
Content := ReadTextfile(FileName, nil);
|
||||
Content := ReadTextfile(FileName, UTF8NoBOMEncoding);
|
||||
Lines := Explode(CRLF, Content);
|
||||
for i:=0 to Lines.Count-1 do begin
|
||||
// Each line has 3 segments: reg path | data type | value. Continue if explode finds less or more than 3.
|
||||
|
Reference in New Issue
Block a user