Changeset 418


Ignore:
Timestamp:
07/16/12 13:16:35 (12 years ago)
Author:
sherbold
Message:
  • now using UTF-8 instead of UTF-16 with MFC logs
Location:
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/LogPreprocessor.java

    r403 r418  
    8989                        FileNotFoundException { 
    9090                OutputStreamWriter targetFile = new OutputStreamWriter( 
    91                                 new FileOutputStream(target), "UTF-16"); 
    92                 targetFile.write("<?xml version=\"1.0\" encoding=\"UTF-16\"?>" 
     91                                new FileOutputStream(target), "UTF-8"); 
     92                targetFile.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" 
    9393                                + StringTools.ENDLINE); 
    9494                targetFile.write("<log>" + StringTools.ENDLINE); 
     
    119119                        FileNotFoundException { 
    120120                OutputStreamWriter targetFile = new OutputStreamWriter( 
    121                                 new FileOutputStream(target), "UTF-16"); 
    122                 targetFile.write("<?xml version=\"1.0\" encoding=\"UTF-16\"?>" 
     121                                new FileOutputStream(target), "UTF-8"); 
     122                targetFile.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" 
    123123                                + StringTools.ENDLINE); 
    124124                targetFile.write("<log>" + StringTools.ENDLINE); 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/MFCLogParser.java

    r403 r418  
    240240                        saxParser = spf.newSAXParser(); 
    241241                        inputSource = new InputSource(new InputStreamReader( 
    242                                         new FileInputStream(filename), "UTF-16")); 
    243                 } catch (UnsupportedEncodingException e) { 
    244                         e.printStackTrace(); 
     242                                        new FileInputStream(filename)));//, "UTF-8")); 
     243                //} catch (UnsupportedEncodingException e) { 
     244                //      e.printStackTrace(); 
    245245                } catch (ParserConfigurationException e) { 
    246246                        e.printStackTrace(); 
Note: See TracChangeset for help on using the changeset viewer.