more UTF-8 configs

This commit is contained in:
zzz
2009-08-18 14:46:29 +00:00
parent a9054a3cab
commit a379e36e24
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {}