portals-pluto-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Doremus (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PLUTO-94) servletRequest encoding
Date Sat, 15 Apr 2006 16:54:02 GMT
     [ 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


Mime
View raw message