Re: [fpc-pascal] Read lines into UnicodeString variable from UCS2 (UTF-16) encoded text file

2019-09-16 Thread LacaK
Yes, GetTextBOM/SetTextBOM as described above make sense, good idea. Just to be clear - I don't have capacity to work on the implementation myself, unfortunately this is also my case for now your potential contribution would be appreciated. maybe sometime later I will take the time to l

Re: [fpc-pascal] Read lines into UnicodeString variable from UCS2 (UTF-16) encoded text file

2019-09-16 Thread Tomas Hajny
On 2019-09-16 08:29, LacaK wrote: Hi Laco, . . Thank you Tomas. My comment per function names: use pattern SetText.../GetText... So for inspiration: - GetTextBOM or ReadBOM(var T: Text; SetCodePage:boolean=True):Word,   (parameter SetCodePage should specify if SetTextCodePage will be called