0
I’m using fmt to internationalize the texts on a page. It turns out that when using accents, the text gets weird characters. I tried to change:
<fmt:requestEncoding value="UTF-8" />
but there was no difference. There is some extra configuration that should be made?
Edit:
Header on the page
<%@ page contentType="text/html; charset=UTF-8" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setLocale value="pt_BR"/>
<fmt:setBundle basename="messages" />
Utilizing:
<h5><fmt:message key="action"/></h5>
messages_pt_BR.properties file:
action = Ação
would be this here?
– Renan Gomes
So it works! But the project was using normal accent, when I got the project via git, the encoding of . properties came broken (with queries) and started not to work accent. I use a machine with Macos, will there be any relation?
– Nichollas Fonseca