warodri

JSON enviado con distinto header

Jun 24th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. header('Content-Type: text/html; charset=iso-8859-1'); //ISO-2022-JP utf-8 iso-8859-1
  3. echo '{"know_how_cabecera": [ { "id":"1", "title":"walter12 pasos a considerar camino a una reunion", "fecha":"20110610" }, {
  4. "id":"2", "title":"Como sacarse el miedo frente al jefe", "fecha":"20110610" }, { "id":"3", "title":"Comer sano, indispensable para rendir mas", "fecha":"20110610" }, { "id":"4", "title":"Hacer ejercicio en el trabajo ayuda a la concentración", "fecha":"20110611" } ] ,"error": [ { "code":"0", "msg":"ok" } ] } ';
  5. ?>
Advertisement
Add Comment
Please, Sign In to add comment