Changeset 3317


Ignore:
Timestamp:
10/26/07 11:24:29 (12 years ago)
Author:
curtis
Message:

Workaround for XML parsing bug with SAX on Windows and Mac OS X.

File:
1 edited

Legend:

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

    r3184 r3317  
    140140    String xml = (String) TiffTools.getIFDValue(ifds[0], 
    141141      FLEX, true, String.class); 
     142 
     143    // HACK - workaround for Windows and Mac OS X bug where 
     144    // SAX parser fails due to imporperly handled mu characters. 
     145    char[] c = xml.toCharArray(); 
     146    for (int i=0; i<c.length; i++) { 
     147      if (c[i] < ' ' || c[i] > '~') c[i] = '?'; 
     148    } 
     149    xml = new String(c); 
     150 
    142151    Vector n = new Vector(); 
    143152    Vector f = new Vector(); 
Note: See TracChangeset for help on using the changeset viewer.