[Lazarus] WinCE and strings

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Tue Jul 10 10:14:05 CEST 2012


On Tue, Jul 10, 2012 at 9:58 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
>> - I need to convert (using conditional code) from string to WideString
>> when compiling for WinCE, like
>
> You only need to convert if you have text that is not encoded in UTF-8. Then
> you should use UTF8ToSys/SysToUTF8 or AnsiToUTF8/UTF8ToAnsi.

Between widestring and LCL strings a good pair to use is UTF8ToUTF16/UTF16ToUTF8

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list