I'm new to spring, and I'm trying to print a list. When the page loads, the text doesn't display correctly.
When I replace the return string from the jsp view name with one of the entries and adding the @ResponseBody annotation, it display correctly on the browser (FF set to UTF-8).
I'm working on ubuntu, so files are saved on utf-8 and tomcat server.xml URIEncoding is set to UTF-8. I've also added the line
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
to the pom.xml
jsp:
<c:forEach var="current" items="${ entries }">
<H1><c:out value="${current.getCsvRow() }"></c:out></H1>
</c:forEach>
Iterating using <%= item %>
isn't displaying right as well.
However, writing hebrew directly on the JSP displays correctly.
UPDATE: My jsp is configured to display UTF-8 using
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
Any suggestions??