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-93) pageregistry.xml other that local
encoding
[ https://issues.apache.org/jira/browse/PLUTO-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David DeWolf resolved PLUTO-93.
-------------------------------
Resolution: Won't Fix
> pageregistry.xml other that local encoding
> ------------------------------------------
>
> Key: PLUTO-93
> URL: https://issues.apache.org/jira/browse/PLUTO-93
> Project: Pluto
> Issue Type: Wish
> Components: portal driver
> Affects 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.
-
You can reply to this email to add a comment to the issue online.