Mattias Gaertner пишет:
> On Thu, 19 Jun 2008 17:19:59 +0400
> Андрей Гусев <[EMAIL PROTECTED]> wrote:
>
>   
>> Yes. But UTF8Length() is portable between string encodings?
>> Solution is clean: i must use check ifdef'ed WindowsUnicodeSupport to
>> choice between UTF8Length()/Length(). But maybe it already
>> implemented as universal and conventional solution.
>>
>> And, that adjanced questuion:
>> Lazarus, guessed, have a tool to recognize encoding by binary 
>> representation of string
>> (because Lazarus automatically recognize encodings in LFM files), so, 
>> how i can use it ?
>>     
>
> There is a simple heuristic.
> The function is in lcl/lconvencoding.pas function GuessEncoding.
>
>   
Thanks.

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to