Serverside Processing with special characters (Ex:äää)

Serverside Processing with special characters (Ex:äää)

rr21rr21 Posts: 4Questions: 0Answers: 0
edited February 2014 in General
Hi
I am using the datatables for my application, I have used server side pagination [JSP-Struts-2] , I went through different threads on the special character search issue .. still i am unable to figure it out . The regular English text search works fine .. Pls Let me know wot changes needs to be done inorder to make special character search .

Please find my code below ..

[code]

$(document).ready(function(){

oTable = $('#example').dataTable({
"bJQueryUI": true,
"bPaginate": true,
"bServerSide": true,
"sAjaxSource": "ajaxUserSearch.action",
"bProcessing": true,
"bLengthChange": false,
"oLanguage": {
"sUrl": ''
},

"aoColumnDefs": [
{
"aTargets":[0],

"fnCreatedCell": function(nTd, sData, oData, iRow, iCol)
{
$(nTd).css('text-align', 'center');
},
"mData": null,
"mRender": function( data, type, full) { // You can use as well if you want
//console.log(full[7]);
if(full[7]=='ACTIVE' || full[7]=='Active')
{
return ' ';
}
else{
return ' ';
}

},

}

]
});
oTable.fnSetColumnVis( 9, false );

});
[/code]


Thanks

Replies

  • allanallan Posts: 63,691Questions: 1Answers: 10,500 Site admin
    Since you are using server-side processing, the filtering is done entirely by your server-side script ( `ajaxUserSearch.action` ). So you need to make sure that is capable of doing an UTF8 search (assuming you are using UTF8).

    Allan
This discussion has been closed.