The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!
My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
please tell us more about your environment. What Server do you use? Which compiler version and IDE do you use? Maybe you could come up with a small example application that demonstrates the problem?
I did a quick look at your database. I think the main reason this happens is that it lacks character set information. Please recreate the database using a default character set. Otherwise Zeos will not know hot to read and write data and Firebird will not be able to do the necessary conversins when reading and writing data.
If you can't recreate your database please recreate the blob column with a default character set.
delmar grande wrote: ↑28.07.2021, 15:23
Hello, in the version zeosdbo-7.2.4-stable it worked could leave if the blob was charset NONE it would impota without conversion.
Yes - but this use case simply isn't supported by Zeos. If you want to store things in a binary form, use use blob sub_type 0. If you want to store things as text and have the necessary conversions, use blob_sub type 1 but make sure there is a character set attached at all the necessary places.
delmar grande wrote: ↑28.07.2021, 15:23
I put it like that and I got an error
DID NOT WORK
CREATE TABLE XML (
XML BLOB SUB_TYPE 1 SEGMENT SIZE 80 CHARACTER SET UTF8)
What error did you get? My crystal ball is at the repair shop currently, so I cannot use it to know what happens at your computer.
Regarding your demo application, it has several problems:
You didn't specify a connection character set. This will lead to problems.
If you fix the above, the file will be loaded as asian characters. This probably is because Zeos generates a TWideMemoField. TWideMemoField expects files to be in UTF16 when loaded with LoadFromFile.