From dev-return-86599-archive-asf-public=cust-asf.ponee.io@sling.apache.org Fri Feb 9 15:34:06 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id ED4CA180654 for ; Fri, 9 Feb 2018 15:34:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DD4E6160C4C; Fri, 9 Feb 2018 14:34:05 +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 2FF61160C2E for ; Fri, 9 Feb 2018 15:34:05 +0100 (CET) Received: (qmail 98220 invoked by uid 500); 9 Feb 2018 14:34:04 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 98209 invoked by uid 99); 9 Feb 2018 14:34:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2018 14:34:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 52C51C00E0 for ; Fri, 9 Feb 2018 14:34:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id R0uZy6hhaWQU for ; Fri, 9 Feb 2018 14:34:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id BCE895F54E for ; Fri, 9 Feb 2018 14:34:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CE2A8E0257 for ; Fri, 9 Feb 2018 14:34:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3883224106 for ; Fri, 9 Feb 2018 14:34:00 +0000 (UTC) Date: Fri, 9 Feb 2018 14:34:00 +0000 (UTC) From: "Julian Reschke (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SLING-7344) Jackson Sling Model Exporter needs correct character encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SLING-7344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16358465#comment-16358465 ] Julian Reschke commented on SLING-7344: --------------------------------------- AFAICT, this happens when you feed Strings characters into the servlet API. Does the same happen when writing bytes to the ServletOutputStream? > Jackson Sling Model Exporter needs correct character encoding > ------------------------------------------------------------- > > Key: SLING-7344 > URL: https://issues.apache.org/jira/browse/SLING-7344 > Project: Sling > Issue Type: Bug > Components: Extensions > Reporter: Chris Millar > Assignee: Justin Edelson > Priority: Major > Fix For: Sling Models Impl 1.4.8 > > Attachments: observe-1.png, observe-2.png, observe-3.png > > > This is a formal ticket of what [~justinedelson] and I discussed earlier in December 2017. > The Jackson Sling Model Exporter needs to correctly set the character encoding so content can be correctly handled. It currently defaults out to ISO-8859-1 which makes displaying localized content impossible. > I have put together a sample project here: https://github.com/auniverseaway/sling-exporter-sample > This will show how the default JSON get servlet correctly handles the content, but the Jackson exporter does not. I have also attached screenshots of the behaviors to this ticket. > It sounded like Justin had ideas on where to solve this, so I will defer to him on where it should be done. If I can help implement a solution in the place you want, let me know. Internally, we cannot use the Jackson Exporter until this is fixed, so it's pretty high priority for me to contribute back if I can. -- This message was sent by Atlassian JIRA (v7.6.3#76005)