File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5151import java .net .URL ;
5252import java .nio .channels .Channels ;
5353import java .nio .channels .ReadableByteChannel ;
54+ import java .nio .charset .StandardCharsets ;
5455import java .util .ArrayList ;
5556import java .util .Arrays ;
5657import java .util .Collection ;
@@ -172,7 +173,7 @@ public static ClipboardFormat findByFile(File file) {
172173 if (rootNameTagLength != 0 && rootNameTagLength != 9 ) { // Only allow "" and "Schematic"
173174 return findByFileInExternalFormats (file );
174175 }
175- final String rootName = new String (inputStream .readNBytes (rootNameTagLength ));
176+ final String rootName = new String (inputStream .readNBytes (rootNameTagLength ), StandardCharsets . UTF_8 );
176177 if (rootName .isEmpty ()) {
177178 // Only FAST_V3 and MINECRAFT_STRUCTURE use empty named root compound tags
178179 // FAST_V3 only contains a single child component - if that's not present, only MINECRAFT_STRUCTURE is possible
You can’t perform that action at this time.
0 commit comments