Github user violetagg commented on the pull request:

    https://github.com/apache/tomcat/pull/25#issuecomment-166293296
  
    Ok,
    
    I understand now ...
    
    You misunderstood the usage of that filter ...
    
    It is specified in the documentation [1]:
    "encoding - Name of the character set which should be set, if no other 
character set was set explicitly by a Servlet."
    
    So for example if you specify the following 
`response.setContentType("text/html");` in your servlet `UsersController` then 
the specified encoding `UTF-8` will be used and not `ISO-8859-1`.
    
    Regards,
    Violeta
    
    [1] 
http://tomcat.apache.org/tomcat-8.0-doc/config/filter.html#Add_Default_Character_Set_Filter


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to