Dwarakanath7 / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Select type filters cannot match values containing accents #134

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fill the table with some strings containing accents, like 'Références', in 
column 1
2. define a filter with all possible values, including 'Références', for 
column 1.
3. in the browser, select the value 'Références' in the list

What is the expected output? What do you see instead?
Rows with 'Références' in column 1 should appear. Instead, no match is found. 

What version of the product are you using? On what operating system?
System: Windows 7, IE10 and Chrome 29 same result. I'm using 
JQuery 1.8.3,
Datatable 1.9.4,
ColumnFilter 1.5.1

Please provide any additional information below.

If I select another value containing no accent, it works as expected.
The text filter can match accented values ( ie: if I change the type of that 
same filter from "select" to "text"). And the general filter on the top can 
find the values with 'Références'.

Original issue reported on code.google.com by david.lu...@gmail.com on 12 Sep 2013 at 5:13

GoogleCodeExporter commented 8 years ago
I finally found a workaround. ASP.NET was automatically escaping my accented 
strings:
Références was changed to Références. In both table data and dropdown list 
options. I forced my script to not escape my text content with 
Html.Raw('Références'), in dropdown list and table content.

Original comment by david.lu...@gmail.com on 24 Oct 2013 at 8:32