Changeset 2829


Ignore:
Timestamp:
05/29/07 08:39:50 (13 years ago)
Author:
melissa
Message:

Fixed Java 1.4-specific bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/LIFReader.java

    r2801 r2829  
    206206    LIFHandler handler = new LIFHandler(); 
    207207 
     208    xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><LEICA>" + xml +  
     209      "</LEICA>"; 
     210 
    208211    // strip out invalid characters 
    209212    for (int i=0; i<xml.length(); i++) { 
    210       if (Character.isISOControl(xml.charAt(i))) { 
    211         xml = xml.replace(xml.charAt(i), ' '); 
     213      char c = xml.charAt(i); 
     214      if (Character.isISOControl(c) || !Character.isDefined(c)) { 
     215        xml = xml.replace(c, ' '); 
    212216      } 
    213217    } 
Note: See TracChangeset for help on using the changeset viewer.