Swedish letter not shown correct for editor
Swedish letter not shown correct for editor
NilsJ
Posts: 12Questions: 5Answers: 0
I have an editor where I set the language options with an url (file) like
'language': {
'url': '/js/language/datatables_swe.json'
}
the json file contains the same strings that work when I set them in the javascript file
{
"sEmptyTable": "Tabellen innehåller inget data",
"sInfo": "Visar _START_ till _END_ av totalt _TOTAL_ rader",
"sInfoEmpty": "Visar 0 till 0 av totalt 0 rader",
"sInfoFiltered": "(filtrerade från totalt _MAX_ rader)",
"sInfoPostFix": "",
"sInfoThousands": " ",
"sLengthMenu": "Visa _MENU_ rader",
"sLoadingRecords": "Laddar...",
"sProcessing": "Bearbetar...",
"sSearch": "Sök:",
"sZeroRecords": "Hittade inga matchande resultat",
"oPaginate": {
"sFirst": "Första",
"sLast": "Sista",
"sNext": "Nästa",
"sPrevious": "Föregående"
}
}
But when I set them that way the swedish letters å, ä and ö are shown as a questionmark (?).
Any suggestions how I can fix that ?
This discussion has been closed.
Answers
Sounds like a character encoding issue. Is the HTML file UTF8? How about the character set that the server is sending the file as? They all need to be consistent for it to work unfortunately.
Allan
My Project is an SPA (single page application) with following header
Thanks I realized that the coding of the JSON file was ANSI