I have a MySQL database that contains German Umlauts (ä, ü, ö, etc). The database fields are all encoded latin1_german1_c (if that matters).
From that database I create a json object that I use with javascript. However each value that contains one of those Umlauts gets set to null right from the get go via:
var json = <?php echo json_encode($results);?>;
then:
>>> console.log(json[0].name)
null
Do I need to encode my document somehow differently? Do I need to walk through the $results array and encode each value somehow? Or something completely different?