struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3863) Incorrect encoding in JsonResult
Date Fri, 14 Dec 2012 09:26:13 GMT

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

Hudson commented on WW-3863:
----------------------------

Integrated in Struts2-JDK5 #21 (See [https://builds.apache.org/job/Struts2-JDK5/21/])
    WW-3863 Allows to define encoding per result (Revision 1421740)

     Result = FAILURE
lukaszlenart : 
Files : 
* /struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
* /struts/struts2/trunk/plugins/json/src/test/java/org/apache/struts2/json/JSONResultTest.java

                
> Incorrect encoding in JsonResult
> --------------------------------
>
>                 Key: WW-3863
>                 URL: https://issues.apache.org/jira/browse/WW-3863
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.3.4
>            Reporter: Anders Lundberg
>            Assignee: Lukasz Lenart
>            Priority: Minor
>             Fix For: 2.3.8
>
>
> org.apache.struts2.json.JSONResult uses the configured default encoding (in the struts
properties, with the "struts.i18n.encoding" key) when setting the charset part in the response's
content type.
> Shouldn't JSONResult.getEncoding() always return UTF-8, similar to the resolution of
WW-3059?
> A simple workaround is to override JSONResult.getEncoding() and let it return UTF-8 but
it would be preferrable if this was included in the distribution.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message