* Correct UTF8 detection

This commit is contained in:
Michaël Van Canneyt 2024-02-14 20:08:16 +01:00
parent 186f93a8c9
commit 6d49f7db7b

View File

@ -2747,7 +2747,7 @@ begin
Result:=sofBinary
else if (AnsiChar(Sig[0]) in StartChars) then
Result:=sofText
else if (Sig[1]=$BF) and (Sig[2]=$BB) and (Sig[3]=$EF) then
else if (Sig[0]=$EF) and (Sig[1]=$BB) and (Sig[2]=$BF) then
Result:=sofUTF8Text;
end;