Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-93

pageregistry.xml other that local encoding

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.0.1-rc1
    • unspecified
    • portal driver
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            dill Denis I. Yudin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: