[TYPO3-dev] lib/div and creating json file
David Bruchmann
typo3-dev at bruchmann-web.de
Tue Aug 4 11:38:28 CEST 2009
----- 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
More information about the TYPO3-dev
mailing list