Changeset db0501f for installer/java


Ignore:
Timestamp:
Dec 29, 2012 12:10:38 AM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
c6dd7b4
Parents:
3be5002
Message:

explicitly specify encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/java/src/net/i2p/installer/FixWinPaths.java

    r3be5002 rdb0501f  
    44import java.io.BufferedWriter;
    55import java.io.File;
     6import java.io.FileInputStream;
    67import java.io.FileOutputStream;
    7 import java.io.FileReader;
    8 import java.io.FileWriter;
    98import java.io.IOException;
     9import java.io.InputStreamReader;
    1010import java.io.OutputStreamWriter;
    1111import java.io.PrintStream;
     
    4141        BufferedWriter bw = null;
    4242        try {
    43             br = new BufferedReader(new FileReader(wConf));
     43            br = new BufferedReader(new InputStreamReader(new FileInputStream(wConf), "UTF-8"));
    4444            bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(wConfTemp), "UTF-8"));
    4545            String line;
Note: See TracChangeset for help on using the changeset viewer.