I went through many googles on this topic, but no help came. The fact is that I installed the UTF-8 encoding in every single place where I could (and could not even), but still the data extraction from inputText was damaged. I use JSF, Primefaces and Hibernate. When I submit to a page, it displays correctly from the database, written as plain text in an html doc, even as a bean.
<h:outputText value="text cez OT: čerstvejší"/><br/>
text cez IDE: čerstvejší<br/><br/>
<h:outputText value="text cez OT_beans: #{temp.dia}"/><br/>
text cez IDE_beans: #{temp.dia}<br/><br/>
<h:outputText value="text cez OT_DBS: #{temp.getDBS()}"/><br/>
text cez IDE_DBS: #{temp.getDBS()}<br/>
Also, when I install the variable installer:
public String getName() {
return "načítané z aplikácie";
}
It displays correctly. Only when I post on the page any of the characters "ľščážýáíé" does he corrupt Ä? and common characters. It runs on Appache Tomcat 7.0.34, managed by NetBeans with CDI, JSF 2.2, Primefaces 3.5, Hibernate 3.2.5. UTF-8 encoding encoding:
meta http-equiv = "Content-Type" content = "text/html; charset = utf-8" /" >
= "8080"
= "HTTP/1.1"
ConnectionTimeOut = "20000"
redirectPort = "8443"
URIEncoding = "UTF-8" / " > =" 8009 "protocol =" AJP/1.3" redirectPort = "8443" URIEncoding = "UTF-8" /" > Appache
f: view encoding = "UTF-8" contentType = "text/html" >
webFilter, :
@Override
public void doFilter ( ServletRequest, ServletResponse, FilterChain) IOException, ServletException { request.setCharacterEncoding(); response.setCharacterEncoding(); chain.doFilter(, );
}
? ? ! "