You are not logged in.
Hello ab,
Lets say I have a TSQLRecord-derived record whose string properties are defined as 'String'.
Now if I changed the source code and all 'String' properties become 'RawUtf8', will error happen when reading back the record data from SQLite db?
Thanks.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
No error: it will be transparent.
The data is stored as UTF-8, so with Delphi XE4 did already make the proper conversion from UTF-16 into UTF-8.
So if you change "UnicodeString" into "RawUTF8" properties, you will have the proper UTF-8 encoded data.
Ensure you don't miss any unexpected string/RawUTF8 conversion in your code by following compiler hints.
Offline
@ab,
Thank you! I got it. mORMot is the BEST!
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline