On 09/09/2020 17:37, Mattias Gaertner via fpc-pascal wrote:
> On Wed, 09 Sep 2020 17:25:09 +0200
> Tomas Hajny via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
> 
>> On 2020-09-09 13:51, LacaK via fpc-pascal wrote:
>> [...]
>> A simple question - is TLabel.Caption declared as Utf8String (I don't 
>> use Lazarus)? _Then_ it should work without any issues and/or special 
>> attention from users.
> 
> Declaring as UTF8String would insert implicit conversion code for all
> String (CP_ACP), so basically everywhere.

If the dynamic code page of the assigned string was already CP_UTF8 (or
CP_ACP with DefaultSystemCodePage = CP_UTF8), no actual conversion will
happen though. Is the overhead of that extra bit of code really
noticeable? And is it worth the confusion and inconvenience?


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to