Changeset 18421

Show
Ignore:
Timestamp:
27.01.2009 12:11:32 (11 years ago)
Author:
kjdon
Message:

doc xml files should always be utf-8 so add an encoding to getDOM

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/service/GS2LuceneRetrieve.java

    r15326 r18421  
    123123        throw new Exception("Doc XML file "+doc_xml_file.getPath()+" does not exist"); 
    124124        } 
    125         Document doc_xml_doc = this.converter.getDOM(doc_xml_file); 
     125        Document doc_xml_doc = this.converter.getDOM(doc_xml_file, "utf-8"); 
    126126        if (doc_xml_doc == null) { 
    127127        throw new Exception("Couldn't parse file "+doc_xml_file.getPath());