Changeset 16671
- Timestamp:
- 2008-08-07T13:49:22+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/metadata/DocXMLFile.java
r16579 r16671 30 30 import java.io.*; 31 31 import java.util.*; 32 import java.net.URLDecoder; 32 33 import org.greenstone.gatherer.DebugStream; 33 34 import org.greenstone.gatherer.util.Utility; 34 import org.greenstone.gatherer.feedback.Base64; 35 35 36 36 37 /** This class represents one doc.xml file */ … … 230 231 gsdlsourcefilename_value = gsdlsourcefilename_value.substring(1); 231 232 232 // Apply Base64 decoding - note that encoding into base64 may have 233 // encoded some characters as slashes. Since slash characters are 234 // removed below the decoding must be done before that to ensure 235 // only genuine slashes remain for processing: 236 gsdlsourcefilename_value = new String(Base64.decode(gsdlsourcefilename_value)); 237 //System.err.println("****decodedSrcFilename is: " + gsdlsourcefilename_value); 233 // URL decode gsdlsourcefilename. Need to set the decoder to use the default system encoding 234 // This is stored in the System's file.encoding property. 235 gsdlsourcefilename_value = URLDecoder.decode(gsdlsourcefilename_value, System.getProperty("file.encoding")); 238 236 239 237 // Make sure the path matches the OS that is running
Note:
See TracChangeset
for help on using the changeset viewer.