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 7C420200B7A for ; Mon, 5 Sep 2016 20:57:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7AB0A160ABC; Mon, 5 Sep 2016 18:57:22 +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 ED74E160ACC for ; Mon, 5 Sep 2016 20:57:21 +0200 (CEST) Received: (qmail 63285 invoked by uid 500); 5 Sep 2016 18:57:20 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 63251 invoked by uid 99); 5 Sep 2016 18:57:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2016 18:57:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9F26A2C1B83 for ; Mon, 5 Sep 2016 18:57:20 +0000 (UTC) Date: Mon, 5 Sep 2016 18:57:20 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCORE-431) Correct character encoding default for application/json MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 05 Sep 2016 18:57:22 -0000 [ https://issues.apache.org/jira/browse/HTTPCORE-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCORE-431. ---------------------------------------- Resolution: Fixed Fix Version/s: 5.0-alpha2 4.4.6 Patch committed to SVN trunk and 4.4.x branch. Oleg > Correct character encoding default for application/json > ------------------------------------------------------- > > Key: HTTPCORE-431 > URL: https://issues.apache.org/jira/browse/HTTPCORE-431 > Project: HttpComponents HttpCore > Issue Type: Improvement > Components: HttpCore > Reporter: Paul Draper > Priority: Minor > Fix For: 4.4.6, 5.0-alpha2 > > > RFC 4627 and RFC 7159 require that parsers auto-detect the encoding of application/json. UTF-8 is the suggested default, though it's possible to detect the encoding of valid JSON unambiguously. > Currently, EntityUtils.toString defaults to ISO-8859-1 (the default for text formats without a charset parameter). > Given how common application/json is, it would be great for EntityUtils.toString to use the correct encoding. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org