[Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

Marcos Douglas B. Santos md at delfire.net
Tue May 2 01:15:46 CEST 2017


On Mon, May 1, 2017 at 8:47 AM, Mattias Gaertner via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:
> Option a) You can use English in sources and load all non ASCII
> constants via resourcestrings or similar. Then the codepage is
> irrelevant.
> Option b) You can store all files as UTF-8 with BOM. Then FPC will
> store all non ASCII string constants as unicodestrings. Be careful when
> using PChar with them. This adds implicit conversions, so it might be
> slower.
>

Maybe option A could be the best.
I did not remember to use resourcestrings... it is a good tip, thanks.

Marcos Douglas


More information about the Lazarus mailing list