[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3-dev] lib/div and creating json file

Hello Xavier,

Thanks for your answer. I already noticed some other functions of mvc_extjs 
project and ok, this is absolutely great.
I will check this and try to solve this in more or less equal way.

For the moment, I am searching for an example how to write a file correctly 
with lib/div, but I can't find any further examples.
Can you suggest any idea, how I can write the data from the model into a file? 

Thanks for your help.
-------- Original-Nachricht --------
> Datum: Tue, 04 Aug 2009 14:38:57 +0200
> Von: Xavier Perseguers <[email protected]>
> An: [email protected]
> Betreff: Re: [TYPO3-dev] lib/div and creating json file

> Hello Walter,
> > But, when I try to send my resultList from the model through
> json_encode()
> > every record, which holds something like 'ÄöüÜ', is NULL.
> > 
> > The problem is, that I don't know a method to utf-8_encode this
> resultList in the model. utf8_encode causes:
> > 
> > Catchable fatal error: Object of class tx_lib_object could not be
> converted to string....
> You cannot expect a method taking a string argument to able to correctly 
> convert an object you made as something useful. If you want it to work, 
> you have to implement method __toString() in your object.
> But I guess you want your object and his properties to be converted into 
> a JSON array that you may then reuse with JavaScript on client side.
> If so, then have a look at method encodeObjectForJSON() from 
> ExtJS/Utility from extension mvc_extjs:
> http://forge.typo3.org/repositories/entry/extension-mvc_extjs/trunk/Classes/ExtJS/Utility.php
> -- 
> Xavier Perseguers
> MVC ExtJS Leader
> http://forge.typo3.org/projects/show/extension-mvc_extjs
> _______________________________________________
> TYPO3-dev mailing list
> [email protected]
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
TYPO3-dev mailing list
[email protected]