[Lazarus] wiki page "Better_Unicode_Support_in_Lazarus"

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Apr 13 11:05:26 CEST 2016


On Wed, 13 Apr 2016 09:59:33 +0200
Michael Schnell <mschnell at lumino.de> wrote:

>[...]
> http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus

Good page.


> Now I did some test and asked ob that list and found that the default 
> code page for the type "String" and with that the definition of  of 
> TStrings and with that the working of TStringList.Add and friends 
> depends on the setting of "DefaultSystemcodepage".

The "type" of String does not change.

> I understand that 
> DefaultSystemcodepage is set when compiling the compiler (e.g. to UTF-8 
> on Linux and (supposedly) to UTF-16 in Windows).

No. DefaultSystemcodepage is set at runtime. By the RTL and the
widestring manager.
Lazarus unit LazUTF8 sets it to CP_UTF8.
 
Mattias




More information about the Lazarus mailing list