Hi I'm trying to get special characters like ëéäá to show up in my autocomplete. For example the letter ë shows up as & # 2 3 5 ; (without the spaces).
I'm creating a php array which I json_encode. I can create the json with both ë (html_entity_decode) and & # 2 3 5 ; (without the spaces) in the object. When I create the json object with ë it doesn't show up in the autocomplete.
My autocomplete function looks as follow:
<script>
$(document).ready(function() {
$(function() {
<?php echo "var availableCustomers = " . $this->searchCustomer . ";
"; ?>
$( "#customerAutocomplete" ).autocomplete({
delay: 0,
source: availableCustomers,
select: function(event, ui) {
window.location.href = '/customer/look-customer/deb/' + ui.item.deb;
}
});
});
});
</script>