HTML Charset Not Specified

Yellowfin FAQ shared this question 45 days ago
Answered

My Security Tools flagged this as an issue. Is there a way to specify response charsets?

Comments (1)

photo
1

As of 7.4.11 and 8.0.4 or higher, it is now possible to configure response encoding charsets.

This can be added into <YellowfinInstall>/appserver/webapps/ROOT/WEB-INF/web.xml within the <webapp> tags:

<filter>
 <filter-name>ResponseCharsetFilter</filter-name>
 <filter-class >com.hof.servlet.ResponseCharsetFilter</filter-class >
 <init-param>
  <param-name>charsetName</param-name>
  <param-value>UTF-8</param-value>
 </init-param>
</filter>
<filter-mapping>
 <filter-name>ResponseCharsetFilter</filter-name>
 <url-pattern>/js/backbone/*</url-pattern>
</filter-mapping>

Adding this will specify UTF-8 as the response charset. This change will require a restart of the Yellowfin service.