PicoContainer
  1. PicoContainer
  2. PICO-360

HttpServletResponse#getOutputStream ISO-8859-1 output charset

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Pico Web Remoting
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      0

      Description

      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);
      }}

        People

        • Assignee:
          Paul Hammant
          Reporter:
          Johann Burkard
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: