>> If the problem with current demos ini files is just related to Unicode
>> strings handling, probably an TCustomIniFile descendant with string utf8
>> encode/decode is enough.
>
> Obvious from TCustomIniFile will not work, must be descendant from
> TIniFile.
>
> TMyUnicodeIniFile=Class(TIniFile)
> If the problem with current demos ini files is just related to Unicode
> strings handling, probably an TCustomIniFile descendant with string utf8
> encode/decode is enough.
Obvious from TCustomIniFile will not work, must be descendant from TIniFile.
TMyUnicodeIniFile=Class(TIniFile)
public
>> XML can ease the process.
>>
>
> I don't think so. XML is an heavy beast, taking a lot of code and power. I
> don't like it for that purpose.
Just one idea to implement the ini sections handling, without the need
to write parsing code.
It's heavy, but to deal with these little ini files
>>> That's IMO not worth the effort, I was searching for a very simple
>>> solution that took not more than a few minutes to change everything.
>> What about writing a new TIcsIniFile doing the job ?
>> Would be enough to search&replace TIniFile by TIcsIniFile.
>> TIcsIniFile or TUnicodeIniFile
>> That's IMO not worth the effort, I was searching for a very simple
>> solution that took not more than a few minutes to change everything.
>>
>
> What about writing a new TIcsIniFile doing the job ?
> Would be enough to search&replace TIniFile by TIcsIniFile.
>
> TIcsIniFile or TUnicodeIn
>> I agree with Angus points.
>> As work around, can you transform the unicode strings to
>> UTF-8 before write it into the ini file?
> That's IMO not worth the effort, I was searching for a very simple
> solution that took not more than a few minutes to change everything.
What about writing a