[Lazarus] wiki page "Better_Unicode_Support_in_Lazarus"

Michael Schnell mschnell at lumino.de
Wed Apr 13 09:59:33 CEST 2016


There was a discussion in the fpc -pascal mailing list about a question  
a user (tobiasgiesen) asked (among other things) about storing strings 
of a certain encoding brand in a TStringList.

Here Juha recommended to read this page -> 
http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus

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". I understand that 
DefaultSystemcodepage is set when compiling the compiler (e.g. to UTF-8 
on Linux and (supposedly) to UTF-16 in Windows).

So I suppose Lazarus can't do anything about that. Or are there plans to 
use different compilers /RTL variant to allow for 
"Better_Unicode_Support_in_Lazarus" (project depending potentially 
better performance <with UTF16) or less memory resource requirement 
<with UTF8> or better portability <using unaware  source code in Windows 
and Linux, explicitly using e.g. native pos() results instead of 
introducing CodePointPos(), ...)   ?

-Michael






More information about the Lazarus mailing list