Tengo un formulario html con varios campos de texto.Problemas de codificación en JSP
Cuando intento enviar caracteres no ingleses (en ruso en mi caso), el servidor recibe cadena "ilegible" (no preguntas - "???" pero algunos caracteres extraños).
he simplificado mi código para mostrar aquí:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Simple jsp page</title></head>
<body>
<c:out value="${param.rustext}"/>
<form action="/test" method="post">
<input type="text" name="rustext" width="30">
<input type="submit" value="Submit">
</form>
</body>
</html>
¿Cómo debo arreglar eso?
Están sus encabezados de página en realidad enviando UTF-8 como la codificación? Consulte con algo como Fiddler –
¿Y qué debo hacer si no lo están? – Roman