Datatable and a charset iso-8859-1 database
Datatable and a charset iso-8859-1 database
Hi
Is it possible to use a database in a iso-8859-1 charset ?
In the example "simple" (http://localhost/DataTables-1.10.3-trial/extensions/Editor-1.3.3/examples/simple/simple.html), I replace a record lastname with "Hélène".
After read the forum, i find this two modifications to do :
1. In the page simple.html, modify the line :
meta charset="iso-8859-1"
2. In the page staff.php, add the line :
header("Content-Type: text/json; charset=ISO-8859-1");
But I have the error "Datatables warning : table ids example - Invalide JSON response..."
So, is it possible ? And how to do it easly ?
Thanks a lot in advance ;o)
lilom, from an accent country
Answers
Nobody use this pluging with a charset different of UTF-8 ?
:(
You can use DataTables in any character set you want - DataTables has no specific character set code in it.
If you are getting a response about invalid JSON, it is because the JSON is invalid :-). What is the server responding with - likely it will contain an error message.
Thanks,
Allan