[Lazarus] TStringList.LoadFromFile encoding parameter

Michael Van Canneyt michael at freepascal.org
Sat Jul 9 12:32:29 CEST 2016



On Sat, 9 Jul 2016, Sven Barth wrote:

> Am 08.07.2016 19:57 schrieb "Ondrej Pokorny" <lazarus at kluug.net>:
>>
>> On 08.07.2016 12:22, Michael Van Canneyt wrote:
>>>
>>>
>>>
>>> On Fri, 8 Jul 2016, Michael Schnell wrote:
>>>
>>>> AFAIK, Delphi XE features a second parameter "encoding" with
> TStringList.LoadFromFile.
>>>>
>>>> Lazarus / fpc misses same.
>>>>
>>>> Bug or Feature ?
>>>
>>>
>>> Known missing feature, there exists a bug for it.
>>>
>>> Main problem is that this necessitates a unicode stringlist, and by
>>> extension a unicode RTL. We're working on it.
>>
>>
>> Why do you need a unicode stringlist? I wrote a class helper for myself
> that does it.
>
> I'm wondering that as well. After all we'll need that functionality for the
> ANSI RTLs as well...

If the characters in the file encoding cannot be preserved in the current
encoding for 'ansistring', then what ?

Michael.


More information about the Lazarus mailing list