query($sql); $articles = $stmt->fetchAll(); echo json_encode($articles, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); ?>