I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit a379e36e authored by zzz's avatar zzz
Browse files

more UTF-8 configs

parent a9054a3c
No related branches found
No related tags found
No related merge requests found
...@@ -255,7 +255,7 @@ public class TunnelControllerGroup { ...@@ -255,7 +255,7 @@ public class TunnelControllerGroup {
FileOutputStream fos = null; FileOutputStream fos = null;
try { try {
fos = new FileOutputStream(cfgFile); fos = new FileOutputStream(cfgFile);
fos.write(buf.toString().getBytes()); fos.write(buf.toString().getBytes("UTF-8"));
if (_log.shouldLog(Log.INFO)) if (_log.shouldLog(Log.INFO))
_log.info("Config written to " + cfgFile.getPath()); _log.info("Config written to " + cfgFile.getPath());
} catch (IOException ioe) { } catch (IOException ioe) {
......
...@@ -113,7 +113,7 @@ public class ClientAppConfig { ...@@ -113,7 +113,7 @@ public class ClientAppConfig {
buf.append(PREFIX).append(i).append(".delay=").append(app.delay / 1000).append("\n"); buf.append(PREFIX).append(i).append(".delay=").append(app.delay / 1000).append("\n");
buf.append(PREFIX).append(i).append(".startOnLoad=").append(!app.disabled).append("\n"); buf.append(PREFIX).append(i).append(".startOnLoad=").append(!app.disabled).append("\n");
} }
fos.write(buf.toString().getBytes()); fos.write(buf.toString().getBytes("UTF-8"));
} catch (IOException ioe) { } catch (IOException ioe) {
} finally { } finally {
if (fos != null) try { fos.close(); } catch (IOException ioe) {} if (fos != null) try { fos.close(); } catch (IOException ioe) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment