Registriert seit: 13. Aug 2002
17.203 Beiträge
Delphi 10.4 Sydney
|
Re: is the Value Unicode or Ansi
19. Aug 2008, 21:51
From JclUnicode.pas (JCL)
Delphi-Quellcode:
const
BOM_LSB_FIRST = WideChar($FEFF);
BOM_MSB_FIRST = WideChar($FFFE);
var
BytesRead: Integer;
Order: WideChar;
begin
...
BytesRead := Stream.Read(Order, 2);
if (Order = BOM_LSB_FIRST) or (Order = BOM_MSB_FIRST) then
...
end;
Windows Vista - Eine neue Erfahrung in Fehlern.
|