Details
-
Type: Bug
-
Status: Closed
-
Priority: 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 :
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);
}}
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).