[fpc-devel] Unicode resource strings
nc-gaertnma at netcologne.de
Tue Aug 21 14:53:06 CEST 2012
On Tue, 21 Aug 2012 14:22:17 +0200
Michael Schnell <mschnell at lumino.de> wrote:
> On 08/21/2012 11:22 AM, Mattias Gaertner wrote:
> > Lazarus does not force "unicodestring" to anything for the simple
> > reason, that it does not use it. It only provides some functions for
> > converting UTF-8 to/from unicodestring.
> > At the moment Lazarus does not even use UTF8String, because the RTL
> > does not use it.
> AFAIK, all the GUI related LCL calls use UTF8 in the parameters and
> results. OTOH all Delphi VCL GUI calls use 16 bit string encoding in the
> parameters and results.
The VCL uses the same string as the Delphi RTL classes.
Formerly the encoding was MS Windows codepage, now it is UTF-16.
The LCL uses the same string as the FCL classes.
The FCL uses 8-bit strings without forcing an encoding, except for file
names. The LCL expects UTF-8 and provides UTF-8 file functions.
If the FCL moves to another string or starts enforcing an encoding the
LCL has to be adapted.
More information about the fpc-devel