Using StandardCharset where appropriate

This commit is contained in:
Joakim Erdfelt 2014-10-08 10:50:17 -07:00
parent 8e99c51d86
commit 086bea097d
1 changed files with 1 additions and 1 deletions

View File

@ -592,7 +592,7 @@ public class RequestTest
{
// Should be "testä"
// "test" followed by a LATIN SMALL LETTER A WITH DIAERESIS
request.setCharacterEncoding(StringUtil.__ISO_8859_1);
request.setCharacterEncoding(StandardCharsets.ISO_8859_1.name());
String actual = request.getParameter("name2");
return "test\u00e4".equals(actual);
}