0
hanuman posted
UTF-8 Special Chars give null value or error with json_encode function in php
$myarray= array('nome'=>'Paição','cidade'=>'São Paulo',"À","È","Æ","Ã","Ñ","Ã’","Ö",
"Ú","æ","å","ç","ì","ð","ö","ù","ü","§");
json_encode($myarray);
one server give me result
{"nome":null,"cidade":null,"0":null,"1":null,"2":null,"3":null,"4":null,"5":null,"6":null,"7":null,"8":null,"9":null,"10":null,"11":null,"12":null,"13":null,"14":null,"15":null,"16":null}
and another give me blank screen it means error . not able to encode.
so might some have solution