[TYPO3-dev] lib/div and creating json file
Walter Seeberger
walk2moon at gmx.de
Tue Aug 4 14:25:06 CEST 2009
Hello David,
I checked that stuff already. The thing is, when I use the e.g. printAsText()-function everything is fine. The encoding in the FE is ok.
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....
Any further suggestions?
Regards
Walter
-------- Original-Nachricht --------
> Datum: Tue, 04 Aug 2009 11:38:28 +0200
> Von: David Bruchmann <typo3-dev at bruchmann-web.de>
> An: List for Core-/Extension development <typo3-dev at lists.netfielders.de>
> Betreff: Re: [TYPO3-dev] lib/div and creating json file
> ----- Ursprüngliche Nachricht -----
> Von: Walter Seeberger <walk2moon at gmx.de>
> Gesendet: Dienstag, 4. August 2009 11:23:35
> An: typo3-dev at lists.netfielders.de
> CC:
> Betreff: [TYPO3-dev] lib/div and creating json file
> > Hello there,
> >
> > I want to create a data file (JSON) with some information from my model.
> > At the moment I can't manage to use the PHP5 function json_encode(),
> because this function only accepts UTF-8.
> >
> > My question is: Is there a possibility to have the internal array
> utf8-encoded except a complete iteration with copying every key => value and
> convert them to strings?
> >
> > Thanks for your help.
> > Walter
>
> Hi Walter,
>
> have a look here:
>
> http://de3.php.net/manual/de/book.mbstring.php
>
> and here:
>
> http://de3.php.net/manual/de/book.iconv.php
>
> best regards
> David
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> 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
More information about the TYPO3-dev
mailing list