[fpc-devel] TStrings and BOM
werner.pamler at gmx.net
Thu Jan 2 01:07:29 CET 2020
Am 02.01.2020 um 00:51 schrieb Ondrej Pokorny:
> The WriteBOM property has a valid purpose - it is set in LoadFrom*
> according to the BOM presence in the loaded file. I.e. if you do:
> MyStrings.LoadFromFile('abc'); // WriteBOM and Encoding properties are
> set here
> MyStrings.SaveToFile('abc'); // they are used here to save the file as
> it was loaded
Maybe I am blind here, but our TStrings.LoadFrom* methods do NOT seem to
modify the WriteBOM property - otherwise I would not have posted. Why
would it be called *Write*BOM if it were also for reading?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel