Jquery Table Sorter and Special Characters

am using the jquery tablesorter plugin, and in my column "country" I got special characters: รndia.

The fact is that when I get to the column heading to sort it, it puts my โ€œIndiaโ€ at the end of the column. I assume nav sees & Iacute; instead of a real self with an accent.

Is there a 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.

+4
source share
1 answer

This person had the same problem as you. Check this question: Is it effective to replace all characters with an accent in a string?

+4
source

Source: https://habr.com/ru/post/1303704/


All Articles