#2777: Write BungeeCord's config.yml in UTF-8 as with main config API
This commit is contained in:
parent
c2cc33c6d7
commit
6ad26cc8fa
@ -1,11 +1,14 @@
|
||||
package net.md_5.bungee.conf;
|
||||
|
||||
import com.google.common.base.Charsets;
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.io.Writer;
|
||||
import java.net.SocketAddress;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@ -173,7 +176,7 @@ public class YamlConfig implements ConfigurationAdapter
|
||||
{
|
||||
try
|
||||
{
|
||||
try ( FileWriter wr = new FileWriter( file ) )
|
||||
try ( Writer wr = new OutputStreamWriter( new FileOutputStream( file ), Charsets.UTF_8 ) )
|
||||
{
|
||||
yaml.dump( config, wr );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user