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:56:00 UTC

[jira] Updated: (PLUTO-93) pageregistry.xml other that local encoding

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

Craig Doremus updated PLUTO-93:
-------------------------------

    Fix Version: 1.0.2

> pageregistry.xml other that local encoding
> ------------------------------------------
>
>          Key: PLUTO-93
>          URL: http://issues.apache.org/jira/browse/PLUTO-93
>      Project: Pluto
>         Type: Wish

>   Components: portal driver
>     Versions: 1.0.1-rc1
>  Environment: Win 2k Tomcat-4.1.31 JDK-5.0.1
>     Reporter: Denis I. Yudin
>      Fix For: 1.0.2

>
> File pageregistry.xml can't be passed to Pluto using other that local (I have cp-1251) encoding.
> I'm using UTF-8 in my project so I've changed org.apache.pluto.portalImpl.services.pageregistry.PageRegistryServiceFileImpl.java as following:
> private void load() throws Exception
> {
>    String filename = "WEB-INF/data/pageregistry.xml";
>    File f = new File(filename);
>    if(!f.isAbsolute())
>        filename = servletContext.getRealPath(filename);
>    Unmarshaller unmarshaller = new Unmarshaller(mapping);
>    registry = (PortalImpl)unmarshaller.unmarshal(new InputStreamReader(new FileInputStream(filename), "UTF-8"));
> }
> I think, it should be used something like "static final ENCODING" linked to web.xml

-- 
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