Page 1 of 1

Problem with TDBRichedit

Posted: 30.11.2014, 15:33
by ats3788
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. :cry:

Re: Problem with TDBRichedit

Posted: 01.12.2014, 00:33
by EgonHugeist
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.

Re: Problem with TDBRichedit

Posted: 01.12.2014, 08:29
by ats3788
I changed everything to Binary and it was working. Thx :v: