Hello
Delphi XE / Firebird 2.5
Since I migrated from 6.6.0 to Zeos 7.xx.xx I have a Problem with my Data in "MS Rich Text Format"
Under 6.6 the Blobtype was TMemo. Yeos 7.xx.xx, the Compiler forced me to change it to TWideMemo.
TDBRichEdit shows me now all the "control character" and if I try to store a new dataset
the content is just crap.
Any clue what went wrong ?
I changed it back to Blobtype ftMemo with the Compiler Message
Type Mismatch for field XXXXX , expecting: Memo actual: WideMemo
Sounds odd for me.
Problem with TDBRichedit
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: Problem with TDBRichedit
http://www.delphipraxis.net/182960-gibt ... ost1281740
Of couse i think i know what's going on:
100 bugreports in differnet Kind which reporting differnt issues with Reading streamed Data. The TDBRichEdit has a bad behaior accordingly #0 bytes.
We're trying to detect the encoding. One of the tests inclides a #0 byte detection.
We try to find out what a user or the TDataSet writes: Ansi/ASCII/UTF8 or Unicode. Having no BOM makes the story a true hell. I'm definitelly not lucky about this stupid detection approch but ... don't discuss with the users.
However these are internal issues. AS i wrote before: TDBRichEdit the control bytes of this component makes trouble on some more places. Change the field-type to a binary lob and everything is fine.
Btw. you can change the TZConnection.ControlsCodePage to cpAnsi and Zeos assumes TMemo/TString fields again.
Of couse i think i know what's going on:
100 bugreports in differnet Kind which reporting differnt issues with Reading streamed Data. The TDBRichEdit has a bad behaior accordingly #0 bytes.
We're trying to detect the encoding. One of the tests inclides a #0 byte detection.
We try to find out what a user or the TDataSet writes: Ansi/ASCII/UTF8 or Unicode. Having no BOM makes the story a true hell. I'm definitelly not lucky about this stupid detection approch but ... don't discuss with the users.
However these are internal issues. AS i wrote before: TDBRichEdit the control bytes of this component makes trouble on some more places. Change the field-type to a binary lob and everything is fine.
Btw. you can change the TZConnection.ControlsCodePage to cpAnsi and Zeos assumes TMemo/TString fields again.
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
Re: Problem with TDBRichedit
I changed everything to Binary and it was working. Thx