On Tue, May 2, 2017 at 2:30 AM, Marcos Douglas B. Santos via Lazarus <lazarus@lists.lazarus-ide.org> wrote: > So, as Mattias said, we should code using ANSI chars and everything will be > Ok.
No, you can use all the Unicode freely. The source files are saved as UTF-8 by default. Delphi does the same, this detail is also compatible. >> For Delphi compatible generics you can use FPC trunk and the Generics >> Collection lib made by Maciej. > > Is it part of FPC? If not, could you can post the official URL? It is part of FPC trunk. >> 1. Assign a constant always to a type String variable. > > What do you mean? Instead of create a constant, is it better create a > String variable and assign the string to it? From FPC's point of view our UTF-8 solution is a hack. In practice it means that success in assigning string literals depends on the string type. This: S := 'Have 🍷 for FPC 💓 Lazarus'; always works if "S" is a "String". It may not work with other string types. It is all explained in the wiki page. When all your string data is Unicode then you can code in a Delphi compatible way. Only the Windows system codepages impose a problem, but I got an impression you don't need them now. Juha -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus