autocomplete results after parseJSON (umlauts)

autocomplete results after parseJSON (umlauts)

Hi everyone

I've been working with the autocomplete widget and it really is easy to handle. But I have a problem with the results shown after I use the following function:
  1. $(function() {
  2. var availableTags = $.parseJSON('<?php echo json_encode($location_drop); ?>');
  3. $( "#location_tags" ).autocomplete({
  4. source: availableTags
  5. });
  6. });
The results in the php variable ($location_drop) appear, but the umlauts are shown in html character entities.



I've already checked the output of "json_encode($location_drop)" and the results are correct, so the umlaut problem is because of $parseJSON. The documents are all set to UTF-8.

I hope somebody knows what's the problem here.

Thanks in advance