I am a Java EE web application developer (spring, hibernate, jsf, primefaces), and I found a problem with the DataTable component components. The problem is with sorting columns, especially sorting words with special characters.
In my language (Czech), we use characters such as (Δ, Ε, ΕΎ, etc.), and words starting with these characters are sorted at the end of the table. And that is the problem. They should be sorted after the corresponding letter, for example. "Δ" should be after "c", "Ε" should be after "r", etc., and not after all entries without special characters.
I already use the CharacterEncoding filter provided by the Spring Framework, which should force encoding (UTF-8) for each request and response. But this does not solve the problem. Here is the filter configuration:
<filter> <filter-name>charEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param> </filter>
Is there any way to fix this behavior?
source share