printing UTF8 data in DT wih server side, solved
printing UTF8 data in DT wih server side, solved
Because I have not found a result of my problem in DT forums, I share a working solution !
I have tried many many tests (cannot change db and web server config ) for printing utf8 in datatables, but without success.
Here something working for me:
[code]
$(document).ready(function() {
jQuery.ajaxSetup ( {
'beforeSend' : function(xhr) {
xhr.overrideMimeType('text/html; charset=UTF-8');
}
});
});
[/code]
Junjung
I have tried many many tests (cannot change db and web server config ) for printing utf8 in datatables, but without success.
Here something working for me:
[code]
$(document).ready(function() {
jQuery.ajaxSetup ( {
'beforeSend' : function(xhr) {
xhr.overrideMimeType('text/html; charset=UTF-8');
}
});
});
[/code]
Junjung
This discussion has been closed.
Replies
Allan