RTT wrote:
>>> The D2009 TInitFile already uses the WritePrivateProfileStringW and
>>> GetPrivateProfileStringW versions of the functions, but only work if
>>> the ini file already exists and is Unicode.
>>> 
>> 
>> Surprise! That works indeed with UTF-16, however if there is a UTF-8
>> BOM and data I cannot read a string, have you tested with UTF-8 as
>> well? 
>> 
> I tested right now and unfortunately don't work, but we can easily
> extend the class to support UTF8 BOM marked files.
> 
> 
> function TMyUnicodeIniFile.ReadString(const Section, Ident, Default:
> string): string;
> begin
>  result := inherited;
>  if fIsUTF8 then
>    result := utf8decode(result)
> end;

As I wrote in my previous message, this does not work for me.
Whenever Windows finds an UTF-8 BOM it does not return a single byte.

--
Arno

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to