[fpc-pascal] Unicode strings
Marco van de Voort
marcov at stack.nl
Fri Dec 31 12:04:27 CET 2010
In our previous episode, Jonas Maebe said:
> On 28 Dec 2010, at 11:22, Juha Manninen wrote:
> > What is the difference between the current FPC's UnicodeString and
> > Delphi's UnicodeString? I am confused with all these string types and
> > encodings.
> Delphi's UnicodeString supports holding strings with arbitrary encodings
> (not just UTF-16), along with transparent re-coding of strings when
> assigning them to unicodestrings whose codepage has been statically
> defined at compile time.
This is afaik not true, or ill formulated. The D2009+ unicodestring type is
much like FPC 2.4's Unicode string or Kylix and older FPC's non COM
Widestring (refcounted 2-byte type) , it is the ansistring type (1-byte
type) that gets codepage support.
More information about the fpc-pascal