1
0
Fork 0

correcion escapado en json

This commit is contained in:
humano 2018-11-29 07:31:58 -05:00
parent c6b3abcd6c
commit 6fba98bdf6
1 changed files with 3 additions and 2 deletions

View File

@ -7987,6 +7987,7 @@ while($row = mysqli_fetch_array( $sql ))
//$contenido[0] =stripslashes($contenido[0]);
//$contenido[0] =stripslashes($contenido[0]);
$contenido[0] =stripslashes($contenido[0]);
$contenido[0] =stripslashes($contenido[0]);
$is_json = isJson($contenido[0]);
/*if($is_json == '1'){
$cadena='{"a":1,"b":2,"c":3,"d":4,"e":5}';
@ -12182,7 +12183,7 @@ $features[] = "$consulta";
$resultado = $features;
}else {
$resultado = json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
$resultado = json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
}
return $resultado;
@ -12311,7 +12312,7 @@ if($datos["tipo"] == "array" ) {
$resultado = $features;
}else {
//$resultado = json_encode($mostrar,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
$resultado = json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
$resultado = json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
}
return $resultado;