[Lazarus] Converting all code to use UnicodeString

Ondrej Pokorny lazarus at kluug.net
Mon Sep 25 20:19:26 CEST 2017

On 25.09.2017 20:02, Marcos Douglas B. Santos via Lazarus wrote:
> May I code using just "string"?

Yes. LCL is ANSI/UTF8 only, so is TStrings.

You can write Lazarus+Delphi compatible code without a lot of problems. 
Just use the string type. The only thing you have to be aware is that in 
Delphi you work with UTF-16 and in Lazarus with UTF-8 - but for most 
cases it doesn't really matter. You will have to write your own methods 
with IFDEF-ed code for things where it matters (read/write from/to 
buffer, char-by-char iterations etc.).


More information about the Lazarus mailing list