Buongiorno ragazzi,
sto vedendo un progetto in sede dove non funziona la login con utenti UTF-8(cirillico)! Utilizzo una login con form based authentication!
Allora ecco la mia JSP di login:
codice:
<%@ page session="true"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
request.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-store,no-cache,must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<link rel="stylesheet" href="css/login.css" type="text/css" />
</head>
<body>
<div id="c_login" >
<form id="frmLogin" action="j_security_check" method="POST" accept-charset="UTF-8">
<table id="t_login" cellspacing="4" cellpadding="2" align="center">
<tr>
<td class="td_user"> User </td>
<td class="left">
<input type="text" value="" name="j_username" size="25" />
</td>
</tr>
<tr>
<td class="td_pass"> Password </td>
<td class="left">
<input type="password" name="j_password" size="25" >
</td>
</tr>
<tr>
<td style="text-align:center;padding:20px 0px;">
<input id="submit_button" class="button" type="submit" value="Login">
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
La versione di Tomcat è la 7.0.42
Come potete vedere ho inserito tutto ciò che c'era da inserire nella pagina JSP per quanto riguarda la codifica UTF-8! In Tomcat nel file server.xml al mio Connector ho inserito il parametro URIEncoding="UTF-8"(anche se ho letto la documentazione e serve solo per le richieste di tipo GET)!
Ecco il mio file tomcat-users.xml:
codice:
<user username="user" password="user" roles="user"/>
<user username="гыук" password="user" roles="user"/>
Se utilizzo l'utente user tutto va bene, mentre con гыук no.
Dove sbaglio?Oppure cosa manca? 
Grazie