[picocontainer-scm] [jira] Commented: (PICO-360) HttpServletResponse#getOutputStream ISO-8859-1 output charset

"Johann Burkard (JIRA)" <jira-yCVjj/[email protected]>
Newsgroups gmane.comp.java.picocontainer.cvs
Message-ID <9786985.283.1271003051322.JavaMail.haus-jira@codehaus01.managed.contegix.com>
    [ http://jira.codehaus.org/browse/PICO-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217577#action_217577 ] 

Johann Burkard commented on PICO-360:
-------------------------------------

You will find a patch for Pico Web Remoting 2.4 at [http://pastebin.org/147063]. This patches solves this problem and also removes some dead code (SRSLY, U GUISE).

> HttpServletResponse#getOutputStream ISO-8859-1 output charset
> -------------------------------------------------------------
>
>                 Key: PICO-360
>                 URL: http://jira.codehaus.org/browse/PICO-360
>             Project: PicoContainer
>          Issue Type: Bug
>          Components: Pico Web Remoting
>    Affects Versions: 2.3
>            Reporter: Johann Burkard
>            Priority: Critical
>
> Don't use {{HttpServletResponse#getOutputStream}} because the output encoding is preset to ISO-8859-1, no matter what you set the content type to.
> Instead, simply use {{HttpServletResponse#getWriter}}.
> Simple patch below:
> {{
> > 
> 160d87
> <         ServletOutputStream outputStream = resp.getOutputStream();
> 162c89
> <             outputStream.print(result);
> ---
> >             resp.getWriter().print(result);
> }}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
    <a href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</a>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.