Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82464

Using national characters (ő, ű) for filtering

$
0
0

In the default (example) DataTables configuration it's not easy to use ő, ű (o", u") characters for data filtering. If I write something like "Gergő", it gives this error: DataTables warning: table id=example - An SQL error occurred: SQLSTATE[HY000]: General error: 1271 Illegal mix of collations for operation 'like'.

I tried to use this: http://datatables.net/plug-ins/filtering/type-based/accent-neutralise – but did not succeed. How do I substitute $('#myInput') in the code?

Finaly I made a workaround in ssp.class.php by:

$str=str_replace(array('ő','Ő','ű','ű'),array('_','_','_','_'),$str);

(before the " LIKE ".$binding).

Is there some nicer solution?


Viewing all articles
Browse latest Browse all 82464

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>