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

"Paul Hammant (JIRA)" <jira-yCVjj/[email protected]>
Newsgroups gmane.comp.java.picocontainer.cvs
Message-ID <5434172.1680.1271163491307.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/PICO-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Hammant closed PICO-360.
-----------------------------

    Resolution: Fixed
      Assignee: Paul Hammant

Will do a minor point release tonight - thanks

> 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
>            Assignee: Paul Hammant
>            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.