JSON(json_encode)に変換する前に、フィールドをmysql_fetch_array(urlencoded)からurldecodeに変換しようとしています
これが私が取り組んでいるもので、うまくいきません: The output is still urlencoded
$query = "SELECT * FROM table WHERE tableId=$tableId";
$result = mysql_fetch_array(mysql_query($query));
foreach($result as $value) {
$value = urldecode($value);
}
$jsonOut = array();
$jsonOut[] = $result;
echo (json_encode($jsonOut));
何か案は?