Read/Write config files as UTF-8 instead of ANSII, should fix issue with Turkish people.
This commit is contained in:
parent
de47895e02
commit
72bba82150
1 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ public class Configuration
|
|||
if (file.canRead())
|
||||
{
|
||||
FileInputStream fileinputstream = new FileInputStream(file);
|
||||
buffer = new BufferedReader(new InputStreamReader(fileinputstream, "8859_1"));
|
||||
buffer = new BufferedReader(new InputStreamReader(fileinputstream, "UTF-8"));
|
||||
|
||||
String line;
|
||||
Map<String, Property> currentMap = null;
|
||||
|
@ -301,7 +301,7 @@ public class Configuration
|
|||
if (file.canWrite())
|
||||
{
|
||||
FileOutputStream fos = new FileOutputStream(file);
|
||||
BufferedWriter buffer = new BufferedWriter(new OutputStreamWriter(fos, "8859_1"));
|
||||
BufferedWriter buffer = new BufferedWriter(new OutputStreamWriter(fos, "UTF-8"));
|
||||
|
||||
buffer.write("# Configuration file\r\n");
|
||||
buffer.write("# Generated on " + DateFormat.getInstance().format(new Date()) + "\r\n");
|
||||
|
|
Loading…
Reference in a new issue