[Lazarus] Case error with cirilyc
Vincent Snijders
vsnijders at vodafonevast.nl
Thu Sep 17 08:50:39 CEST 2009
dmitry boyarintsev schreef:
>> But this does not work if the ch is from a LCL component.
>>
>> E.g
>> ch := Label.Caption[1];
>> Because the caption will be UTF8 encoded.
>
> well, it would work for:
> ch := UTF8Decode(Label.Caption)[1];
And hope that the widechar to char conversion uses the encoding you thought it would
use.
Conclusion, yes it is possible, but you must know what you are doing.
Vincent
More information about the Lazarus
mailing list