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 "David DeWolf (JIRA)" <ji...@apache.org> on 2007/03/03 15:12:51 UTC

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

     [ https://issues.apache.org/jira/browse/PLUTO-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David DeWolf resolved PLUTO-94.
-------------------------------

    Resolution: Won't Fix

> servletRequest encoding
> -----------------------
>
>                 Key: PLUTO-94
>                 URL: https://issues.apache.org/jira/browse/PLUTO-94
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects 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.
-
You can reply to this email to add a comment to the issue online.