2
0
Michaël Van Canneyt 1 жил өмнө
parent
commit
6d49f7db7b

+ 1 - 1
rtl/objpas/classes/classes.inc

@@ -2747,7 +2747,7 @@ begin
     Result:=sofBinary
     Result:=sofBinary
   else if (AnsiChar(Sig[0]) in StartChars) then
   else if (AnsiChar(Sig[0]) in StartChars) then
     Result:=sofText
     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;
     Result:=sofUTF8Text;
 end;
 end;