On Wed, 2011-01-12 at 14:59 +0100, LacaK wrote: > > No. It is mandatory that you send/receive UTF8 to/from GUI LCL > > elements. > As LCL elements are using TStringField.Text property, then this property > should return UTF8String, right (not AnsiString in ANSI code page) ? > If yes, then also TStringField must store internaly data in any unicode > format (to not lose any characters), right ? > So it can be UTF-8, UTF-16 or UTF-32 ... in all cases we must allocate > space 4*[max.number of characters in field], right ? > So in what encoding are string data stored now in TStringField ?
The encoding you've specified. In the connection-string or some other database-server dependent setting. Not that when you want to use UTF-16 (or 32) you have to use TWideStringFields. Joost. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel