I have this weird issue which i'm absolutely don't even know how to address...
i have this little AJAX call:
$('#toexcel').live("click",function() {
var sql = grid.data().sql;
$.ajax({
url: "toExcel.php",
data: "sql="+sql,
success: function(response){
window.location.href = response.url;
}
});
alert(sql);
});
});
which passes sql
query from grid
object to toExcel
. toExcel
uses PHPExcel
object to output excel file.
now:
when alert pops up it has normally looking query ...LIKE '%cdviled%'...
but when i access this query in toExcel.php it looks like ...LIKE 'Íviled04%'....
and query obviously fails.
why????? how??