开发者

Jquery Table sorter and special characters

开发者 https://www.devze.com 2022-12-22 18:06 出处:网络
am using jquery tablesorter plugin and in my \"country\" column i got special characters like this: Índia.

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

The fact is开发者_如何学C 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消