Search code examples
jquerycharactertablesorterdiacritics

Jquery Table sorter and special characters


am using jquery tablesorter plugin and in my "country" column i got special characters like this: Índia.

The fact is that when i hit the header of the column to sort it, it puts my "Índia" at the end of the column. I guess the nav sees the Í instead of the real "I" with an accent.

Any clue on how to make it work even with accents ?

Here's the js code in my domready:

$.tablesorter.defaults.widgets = ['zebra'];
$.tablesorter.defaults.sortList = [[0,0]];
$("table").tablesorter();

Thanks in advance.


Solution

  • This person had the same problem you did. Check this question out: Efficiently replace all accented characters in a string?