[fpc-devel] new string - question on usage

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Oct 12 13:45:38 CEST 2011


Michael Schnell schrieb:

> I understand that some day (when the official release comes up) "String" 
> will be a new String type and thus ANSIString obsolete and just an alias.

No. "string" is an alias (generic type), all other string types are 
distinct types.

> So target encoding ID "0" means that " := " will preserve the encoding 
> of the source and set the target appropriately without doing a conversion.

No. Codepage 0 stands for the system encoding, formerly "native" string 
encoding. I.e. 1252 on western Windows, maybe 65001 (UTF-8) on Linux 
(user selectable).

DoDi




More information about the fpc-devel mailing list