On Wed, Sep 9, 2020 at 11:40 AM Bart via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:
> This is a bit counter intuitive to me.

It is explained here:
 https://wiki.freepascal.org/Unicode_Support_in_Lazarus

For LacaK I recommend using UTF-8 encoding as much as possible. Then
everything "*just works*".
You could have a unit or .inc file with WinCP constants for Delphi7, and
then some IFDEFs. They should be explicitly converted to UTF-8 for LCL.
UnicodeString constants can also be a good solution. It triggers an
automatic conversion when assigned to a String variable. The conversion is
usually fast enough.

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

Reply via email to