[fpc-devel] String and UnicodeString and UTF8String
Michael Schnell
mschnell at lumino.de
Mon Jan 10 11:18:13 CET 2011
On 01/10/2011 09:12 AM, LacaK wrote:
> In current Delphi is String synonym for base type UnicodeString UTF-16
AFAIK, in current Delphi (which I don't have) a "String" is a variable
that can contain dynamically coded informations (such as locally coded
8-Bit ANSI, UTF-8, UTF-16, ...) and - of course - know which code it holds.
If a string is generated by the VCL from a Window API function, the
coding will be UTF-16, though, but if you create a string with some
other coding it will be automatically re-coded to UTF16 before sending
it into a Windows API function.
-Michael
More information about the fpc-devel
mailing list