Commit 000377f 1 parent 746d3fe commit 000377f Copy full SHA for 000377f
File tree 1 file changed +2
-1
lines changed
core/src/main/java/net/shadowfacts/discordchat/core
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 9
9
import net .shadowfacts .shadowlib .util .IOUtils ;
10
10
11
11
import java .io .*;
12
+ import java .nio .charset .Charset ;
12
13
import java .util .Arrays ;
13
14
import java .util .Collections ;
14
15
import java .util .List ;
@@ -51,7 +52,7 @@ public void save() throws IOException {
51
52
52
53
ConfigObject toRender = config .root ().withOnlyKey ("discordchat" );
53
54
String s = toRender .render (ConfigRenderOptions .defaults ().setOriginComments (false ).setJson (false ));
54
- InputStream in = new ByteArrayInputStream (s .getBytes ());
55
+ InputStream in = new ByteArrayInputStream (s .getBytes (Charset . forName ( "UTF-8" ) ));
55
56
OutputStream out = new FileOutputStream (file );
56
57
IOUtils .copy (in , out );
57
58
in .close ();
You can’t perform that action at this time.
0 commit comments