Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0B808200C2A for ; Wed, 1 Mar 2017 15:04:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0A12F160B70; Wed, 1 Mar 2017 14:04:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 50B4C160B5E for ; Wed, 1 Mar 2017 15:04:18 +0100 (CET) Received: (qmail 47779 invoked by uid 500); 1 Mar 2017 14:04:17 -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 47768 invoked by uid 99); 1 Mar 2017 14:04:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2017 14:04:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D190B1A7B29 for ; Wed, 1 Mar 2017 14:04:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id mTLv3PqeX5ge for ; Wed, 1 Mar 2017 14:04:15 +0000 (UTC) Received: from mail-ot0-f178.google.com (mail-ot0-f178.google.com [74.125.82.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 08E485F1EE for ; Wed, 1 Mar 2017 14:04:15 +0000 (UTC) Received: by mail-ot0-f178.google.com with SMTP id x10so30049517otb.1 for ; Wed, 01 Mar 2017 06:04:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Ql5b7Bg6vC1laOSx2V9YkqpCRrbsUAqFO4J3jqH275M=; b=FAGCRjoomVLkrNoP1/fmUvU8gvtJBcUpT0b5unHfwH2CXdXQcTFzXK0vSnqrXlfZmW SGHoN102Y7K6hcAvABlkQl8k/XEY3j5PqVizHwyuih91nGAXgiQwBGspIQ9KAwmhoc2P X/7kWI+PYeapOAd3eqyM4HL8kuT2aE3hORo07Y9OH7UKMDhMA6nYSNL+97bGhgpewYvP iPBHY+iMZkRwANnLG9JjGNyXazM7zgh6U07fUBa/1u27cxJGGf5N5z2cVoSkzJhwThVp uFpbYOA9tnboPTycmNYnWSIcNP0ydH03J/TTV/c/9fPzXYkw9DmLnhDsMmej+tsRtpgd hW5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Ql5b7Bg6vC1laOSx2V9YkqpCRrbsUAqFO4J3jqH275M=; b=CucWo+m/AZPEr1xwQ54MzqtN7nLSHHMoWmJxb7ZvulNTCFuP6nj9vu2gGUU+leRovo CbnX/5ZVRFHvf1EDSStskes19NvuPfmpsuInL3c9Tdzadq5Xp18gdglLWwALA259satN J0JDDRmffW62zdOGu4DNw7+tftH6Xq5VNtGO2SJIgSA5ENhe8LJ9IRJ9Xo93bShELk32 1L3o8yWqXVT0eJrk5cfpFzztYx+hc8gpQRelffHJbaCA2kTOPzjp3aVHsHR5dmwB5rJJ WqRZolIJx0jKISCbl+sK3r4C7zg7+SdpQOuapCoCwIgMwAuml5THG4ck9GAGo5Zhpuhv 6yZg== X-Gm-Message-State: AMke39naENXY2pYAvt5KI6eFBhCSK67+xjDk9cDITETY7hQ+WCYWBYDMLaVTIx6ZskjgutM7RIDYXKo9yFxD2g== X-Received: by 10.157.31.57 with SMTP id x54mr3027460otd.186.1488377053765; Wed, 01 Mar 2017 06:04:13 -0800 (PST) MIME-Version: 1.0 References: <22d0fb1c-741b-2205-bde3-500d9d781371@apache.org> In-Reply-To: <22d0fb1c-741b-2205-bde3-500d9d781371@apache.org> From: Enrico Olivelli Date: Wed, 01 Mar 2017 14:04:03 +0000 Message-ID: Subject: Re: Default character encoding to be UTF-8 for 9.0.x To: Tomcat Developers List Content-Type: multipart/alternative; boundary=001a113d054a94e6a70549abc979 archived-at: Wed, 01 Mar 2017 14:04:19 -0000 --001a113d054a94e6a70549abc979 Content-Type: text/plain; charset=UTF-8 My two cents... It would be great! The backport to 8.5 too I always need to add some filter or some lines of code to every servlet. Enrico Il mer 1 mar 2017, 14:31 Mark Thomas ha scritto: > Servlet 4.0 adds the ability to set a default request character encoding > and a default response character encoding in web.xml and > programmatically. The spec allows containers to specify their own > defaults via vendor specific config. We can do this via conf/web.xml. > > Therefore, I would like to propose we configure, via conf/web.xml, UTF-8 > as the default request and default response character encoding. > > Thoughts, comments and/or objections? > > Mark > > P.S. Because of the way this is implemented, we could do something > similar with 8.5.x as well via conf/context.xml > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > -- -- Enrico Olivelli --001a113d054a94e6a70549abc979--