Details
-
Wish
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
1.0.1-rc1
-
None
-
Win 2k Tomcat-4.1.31 JDK-5.0.1
Description
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