You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Craig Doremus (JIRA)" <ji...@apache.org> on 2006/04/15 18:54:02 UTC

[jira] Updated: (PLUTO-94) servletRequest encoding

     [ http://issues.apache.org/jira/browse/PLUTO-94?page=all ]

Craig Doremus updated PLUTO-94:
-------------------------------

    Fix Version: 1.0.2

> servletRequest encoding
> -----------------------
>
>          Key: PLUTO-94
>          URL: http://issues.apache.org/jira/browse/PLUTO-94
>      Project: Pluto
>         Type: Bug

>   Components: portal driver
>     Versions: 1.0.1-rc2
>  Environment: Win 2k, Oracle 9i, JDK-5.0, Tomcat-4.1.31 
>     Reporter: Denis I. Yudin
>      Fix For: 1.0.2
>  Attachments: Servlet.patch
>
> I'm using UTF-8 but requests stays in my local encoding (cp-1251).
> It may be overcome using this:
>     private static String CHARSET = "iso-8859-1";
>  ................................
> public void init(ServletConfig config) throws ServletException
> {
>    super.init(config);
>    String charset = config.getInitParameter("charset");
>    if(charset != null && charset.length() > 0) {
>             CONTENT_TYPE = "text/html; charset=" + charset;
>             CHARSET = charset;
>    }
>         ....................
> public void doGet(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws IOException, ServletException
> {
>   servletRequest.setCharacterEncoding(CHARSET);
>          ..................

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