I am working with jquery airport plugin and I would like to display some special characters like ø,æ,å.
I have modified the chars array in the source code. which looks like the below..
var chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', ' ', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z','-','æ', 'å', 'ø'];
Now the problem is my web site does not display Ø.
But in my page i have ‘Ø’ in some other places as well but they are displaying properly.
It is not shown properly only where I am using the plugin.
$('#airportText').airport(['Roskilde', 'Herning', 'København']);
instead of Ø, page is displaying ‘�’
Be sure your script containing your chars array definition is encoded in UTF8 (without BOM). This should fix your issue.