Skip to content
Advertisement

Data table Server Side Processing Arabic search won’t work correctly

I’m using Codeigniter and Data table server-side processing to get data from Database

My Controller Function

JavaScript

My Model Functions

JavaScript

My Script

JavaScript

it works properly and I get the result enter image description here

All the functions of the table work perfectly (pagination,server processing….), even search is working perfectly with English word but not ًWith Arabic, when I type the first letter of the word an error message appears

enter image description here

I have tried many options like adding

JavaScript

and

JavaScript

in the controller but it didn’t work what should I do?

The Console Output

JavaScript

The Network Tab enter image description here And enter image description here

And The Search value is Arabic in Headers

enter image description here

Advertisement

Answer

I have got the solution from here , it was because of Date fields in the table so I got the problem

JavaScript

Changing the line

JavaScript

to

JavaScript

Solved the problem.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement