|
|
@ -48,9 +48,11 @@ import java.io.BufferedReader;
|
|
|
|
import java.io.BufferedWriter;
|
|
|
|
import java.io.BufferedWriter;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
|
|
|
|
import java.io.FileOutputStream;
|
|
|
|
import java.io.FileWriter;
|
|
|
|
import java.io.FileWriter;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.InputStreamReader;
|
|
|
|
import java.io.InputStreamReader;
|
|
|
|
|
|
|
|
import java.io.OutputStreamWriter;
|
|
|
|
import java.io.PrintWriter;
|
|
|
|
import java.io.PrintWriter;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Enumeration;
|
|
|
|
import java.util.Enumeration;
|
|
|
@ -144,7 +146,7 @@ public class translator {
|
|
|
|
String line = "";
|
|
|
|
String line = "";
|
|
|
|
BufferedReader br = null;
|
|
|
|
BufferedReader br = null;
|
|
|
|
try{
|
|
|
|
try{
|
|
|
|
br = new BufferedReader(new InputStreamReader(new FileInputStream(sourceFile)));
|
|
|
|
br = new BufferedReader(new InputStreamReader(new FileInputStream(sourceFile),"UTF-8"));
|
|
|
|
while( (line = br.readLine()) != null){
|
|
|
|
while( (line = br.readLine()) != null){
|
|
|
|
content += line + de.anomic.server.serverCore.crlfString;
|
|
|
|
content += line + de.anomic.server.serverCore.crlfString;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -158,7 +160,7 @@ public class translator {
|
|
|
|
content = translate(content, translationList);
|
|
|
|
content = translate(content, translationList);
|
|
|
|
BufferedWriter bw = null;
|
|
|
|
BufferedWriter bw = null;
|
|
|
|
try{
|
|
|
|
try{
|
|
|
|
bw = new BufferedWriter(new FileWriter(destFile));
|
|
|
|
bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(destFile),"UTF-8"));
|
|
|
|
bw.write(content);
|
|
|
|
bw.write(content);
|
|
|
|
bw.close();
|
|
|
|
bw.close();
|
|
|
|
}catch(IOException e){
|
|
|
|
}catch(IOException e){
|
|
|
|