On Wed, Oct 24, 2012 at 11:24 AM, Luca Olivetti <[email protected]> wrote: > Al 24/10/2012 16:14, En/na Howard Page-Clark ha escrit: > >> On 24/10/12 2:37, Marcos Douglas wrote: >> >>>>> ...in my example I didn't do that and worked, why? >>> >>> >>> I had not explained very well. When I said the file is Ok I mean the >>> file on Windows Explorer, not in LCL. >>> Do the test and you see. >> >> >> I guess the stringlist streaming saves the string with a BOM, and so >> Explorer then recognises the encoding? > > > > There's no BOM, but notepad is capable of showing it correctly. The problem > is, if you then save the file from notepad it will add a BOM, that will mess > up the loading of the file in a stringlist (or, in my case, in a TIniFile).
Explained well. I tested and it's correct, thank you. Marcos Douglas -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
