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

Dora Rajappan commented on MYFACES-3402:
----------------------------------------

ResourceHandlerImpl.java line 384 sets this
 httpServletResponse.setContentType(_getContentType(resource, 
facesContext.getExternalContext())); Hence this behaviour. Will you prefer 
httpServletResponse.setContentType(extContext.getRequestContentType()) to 
resolve this issue?
                
> Partial Response Writer always returns an <?xml version='1.0' 
> encoding='utf-8'?> ignoring the response encoding
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3402
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3402
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.10, 2.1.4
>            Reporter: Werner Punz
>
> While I was testing different ajax encodings I discovered that the Partial 
> Response writer always returns the header listed on the headline of this 
> issue. It ignores simply the original encoding.
> A blackbox test against Mojarra showed in that exact case the proper encoding 
> not UTF-8 static.
> I guess the fix simply should be to make this part of the partial response 
> writer more dynamic and to fetch
> the encoding in from the request header.

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

Reply via email to