sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SLING-7344) Jackson Sling Model Exporter needs correct character encoding
Date Fri, 09 Feb 2018 14:34:00 GMT

    [ 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)

Mime
View raw message