Fix double decoding of UTF8 characters in lang files.

This commit is contained in:
Lex Manos 2015-02-21 17:27:21 -08:00
parent 0a8a535e2c
commit 0281b74c7c
1 changed files with 1 additions and 1 deletions

View File

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