[fpc-pascal] String literals and code page of .pas source file

Juha Manninen juha.manninen62 at gmail.com
Wed Sep 9 11:29:26 CEST 2020


On Wed, Sep 9, 2020 at 11:40 AM Bart via fpc-pascal <
fpc-pascal at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200909/dc7881e5/attachment.htm>


More information about the fpc-pascal mailing list