[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-dev
Subject:    [jira] [Commented] (WW-3401) S2 JSON Plugin handles json content
From:       "Maurizio Cucchiara (Commented) (JIRA)" <jira () apache ! org>
Date:       2011-11-29 16:35:40
Message-ID: 1766212082.22244.1322584540297.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/WW-3401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159347#comment-13159347 \
] 

Maurizio Cucchiara commented on WW-3401:
----------------------------------------

We should ask to Nestor if it is still a problem, considering that is an old issue \
related to an old S2 version (2.1.8.1) (though it looks like the code base of \
{{JSONResult}} haven't been changed since 2.1.8.1 version)  
> S2 JSON Plugin handles json content and contentType encoding differently
> ------------------------------------------------------------------------
> 
> Key: WW-3401
> URL: https://issues.apache.org/jira/browse/WW-3401
> Project: Struts 2
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.1.8.1
> Environment: Windows and Red Hat 5
> Reporter: Nestor Boscan
> Labels: encoding, json, s2, struts
> Fix For: 2.1.8.1
> 
> 
> Hi
> I'm using Struts 2 with Struts 2 JSON Plugin. When I deploy my application on a \
> Linux box and the JVM file.encoding parameter is set to ISO-8859-1 the json content \
> is generated as UTF-8 and the content type is application/json;charset=iso-8859-1. \
> So to workaround this problem I set the defaultEncoding attribute to UTF-8 to fix \
> it on Redhat Linux. But if I run this configuration on windows with the \
> defaultEncoding attribute I get the json content with what it looks to be \
> iso-8859-1 encoding and content type application/json;charset=utf-8. To replicate \
> the problem on Windows you can set defaultEncoding to utf-8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

        


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic