#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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks