On 4 Jul 2016, at 12:07pm, R Smith <rsm...@rsweb.co.za> wrote: > I prefer how Lazarus/Delphi does it (wrt the Pascal variant options as > opposed to C++) where a string is a record with first the encoding, the > length and then the actual bytes given.
What Ryan said. Note that sqlite3_bind_text() has a parameter for the length of the text field. And that calls to sqlite3_column_text() may be accompanied by sqlite3_column_bytes() to find the number of bytes returned. So in both cases you can ignore the length of the string as calculated by C and use your own number. Simon. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users