mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 13:09:59 +00:00
Fix double decoding of UTF8 characters in lang files.
This commit is contained in:
1 parent
0a8a535e2c
commit
0281b74c7c
1 file changed
+1
-1
@@ -731,7 +731,7 @@ public class FMLCommonHandler
|
||||
*/
|
||||
public InputStream loadLanguage(Map<String, String> table, InputStream inputstream) throws IOException
|
||||
{
|
||||
byte[] data = IOUtils.toByteArray(new InputStreamReader(inputstream, Charsets.UTF_8));
|
||||
byte[] data = IOUtils.toByteArray(inputstream);
|
||||
|
||||
boolean isEnhanced = false;
|
||||
for (String line : IOUtils.readLines(new ByteArrayInputStream(data), Charsets.UTF_8))
|
||||
|
||||
Reference in new issue
Block a user