Character issue
Character issue
Hey all,
iam writing my table contents into a txt file for some speed reasons and works fine, except when there are some characters in the aaData field. Iam not entirely sure which characters that are.
iam calling the tables as below
[code]
$.getJSON("dataset.txt", function(data) {
$('#test').dataTable( {
"bProcessing": true,
"sPaginationType": "full_numbers",
"aaSorting": [[1, 'asc']],
"aaData": data.aaData,
etc..
etc..
[/code]
Could someone point me to the allowed characters when using this method?
things i tried in php before writing this to the .txt file.
- trim()
-strip_tags()
-htmlentities()
- preg_replace ( only allow a-z 0-9) - works but dont really wanna go this far
So i guess its either some character like $ { which dont get replaced, or encoded entities which are not allowed.
Thanks for tips and pointers to the right direction, very nice script
iam writing my table contents into a txt file for some speed reasons and works fine, except when there are some characters in the aaData field. Iam not entirely sure which characters that are.
iam calling the tables as below
[code]
$.getJSON("dataset.txt", function(data) {
$('#test').dataTable( {
"bProcessing": true,
"sPaginationType": "full_numbers",
"aaSorting": [[1, 'asc']],
"aaData": data.aaData,
etc..
etc..
[/code]
Could someone point me to the allowed characters when using this method?
things i tried in php before writing this to the .txt file.
- trim()
-strip_tags()
-htmlentities()
- preg_replace ( only allow a-z 0-9) - works but dont really wanna go this far
So i guess its either some character like $ { which dont get replaced, or encoded entities which are not allowed.
Thanks for tips and pointers to the right direction, very nice script
This discussion has been closed.
Replies
Allan