Changeset 4086


Ignore:
Timestamp:
2003-04-03T12:32:25+12:00 (21 years ago)
Author:
kjdon
Message:

now reads in the config files using utf-8 rather than the default encoding which is ISO8859_1 on my machine

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/collection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/collection/Collection.java

    r3992 r4086  
    9696   
    9797    // get the xml for both files
    98     Element coll_config_xml = converter_.getDOM(coll_config_file).getDocumentElement();
    99     Element build_config_xml = converter_.getDOM(build_config_file).getDocumentElement();
     98    Element coll_config_xml = converter_.getDOM(coll_config_file, CONFIG_ENCODING).getDocumentElement();
     99    Element build_config_xml = converter_.getDOM(build_config_file, CONFIG_ENCODING).getDocumentElement();
    100100   
    101101    // process the metadata
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/collection/ServiceCluster.java

    r4021 r4086  
    4545    implements ModuleInterface {
    4646
     47    protected static final String CONFIG_ENCODING = "utf-8";
    4748
    4849    /** base directory for the site that this cluster belongs to*/
     
    133134    }
    134135
    135     Document doc = converter_.getDOM(config_file_);
     136    Document doc = converter_.getDOM(config_file_, CONFIG_ENCODING);
    136137   
    137138    // get the appropriate service cluster element
Note: See TracChangeset for help on using the changeset viewer.