AnsiString
AnsiString is a dynamic string type historically used in Borland Pascal, Delphi, and related environments to store text encoded in the 8-bit ANSI character set. It is not Unicode by default and is designed to hold arbitrary 8-bit data as well as text.
One of its defining features is that AnsiString is dynamic and reference-counted with copy-on-write semantics. When
Encoding and code pages are central to AnsiString. On Windows, it uses the system ANSI code page
Interoperability with external APIs is common: a value of type AnsiString can be passed to procedures expecting
Limitations and evolution: in modern applications, UnicodeString is preferred for multilingual text, while AnsiString remains relevant
See also: UnicodeString, RawByteString, ShortString, PAnsiChar.