Menu

#54 How determine SaveFormat in Delphi XE

open
nobody
None
5
2011-11-08
2011-11-08
borneq
No

In old Delphi I wrote:
if not fEditor.fForceAnsi and NeedUTF(SynEditor.Lines,nil) then
SynEditor.Lines.SaveFormat := SynUnicode.sfUTF8
else
SynEditor.Lines.SaveFormat := SynUnicode.sfAnsi;
but from delphi 2009 is:
{$IFDEF UNICODE}
TUnicodeStrings = TStrings;
{$ELSE}
TUnicodeStrings = class;
and not property SaveFormat, can't choose Ansi

Discussion


Log in to post a comment.