more UTF-8 configs
This commit is contained in:
@ -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 {
|
|||||||
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) {}
|
||||||
|
Reference in New Issue
Block a user