[fpc-devel] fcl-web webdata ExtJS "total" field question

Michael Van Canneyt michael at freepascal.org
Sat Aug 21 10:26:05 CEST 2010



On Fri, 20 Aug 2010, ABorka wrote:

>> I implemented b), see revision 15859.
>
> Tested it, and it seems to work nicely both for JSON and XML.
> I'm using the AfterDataToJSON and AfterDataToXML events to replace/insert the 
> correct "total" now.
>
> The only thing I've noticed is that with XML the "text" MySQL fields are not 
> coming over to ExtJS, they only say "(MEMO)" . Is that because XML does not 
> allow UTF8 or something?

No, this is a bug. I fixed it already in JSON (since I use that), but not yet 
in XML.

> Some non-"text" fields are also displaying strange characters with XML where 
> with JSON everything is good.

That is an encoding issue. The XML components need to know what kind of
codepage you use. I think we'll have to introduce a property for this in the
dataformatter. It will introduce some overhead :/

Michael.



More information about the fpc-devel mailing list