Server side processing script addition to handle danish/norwegian chars.

Server side processing script addition to handle danish/norwegian chars.

bordseniusbordsenius Posts: 5Questions: 0Answers: 0
edited January 2014 in Bug reports
I am using this excellent server-side script to pull data dynamically out of a database:
http://datatables.net/examples/data_sources/server_side.html

However - if your data contains any of these letters: ø æ å Ø Æ Å the entire data-enrty will end up as NULL. Quite a lot of people have these letters in their names, and quite a lot of words usem as well. So it is a but of a bug.

How ever, it can be easily fixed by changing one of the last lines in the script:

change this:
$row[] = $aRow[ $aColumns[$i] ];
into this:
$row[] = htmlentities($aRow[ $aColumns[$i] ]);
This discussion has been closed.