Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A06AA10AAC for ; Mon, 21 Dec 2015 12:28:45 +0000 (UTC) Received: (qmail 23477 invoked by uid 500); 21 Dec 2015 12:28:40 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 23387 invoked by uid 500); 21 Dec 2015 12:28:40 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 23376 invoked by uid 99); 21 Dec 2015 12:28:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2015 12:28:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0976BE04AF; Mon, 21 Dec 2015 12:28:39 +0000 (UTC) From: violetagg To: dev@tomcat.apache.org Reply-To: dev@tomcat.apache.org References: In-Reply-To: Subject: [GitHub] tomcat pull request: Change response character encoding Content-Type: text/plain Message-Id: <20151221122840.0976BE04AF@git1-us-west.apache.org> Date: Mon, 21 Dec 2015 12:28:39 +0000 (UTC) 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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org