0

Merge pull request #1477 from overviewer/nbt_utf8_decode

NBT: Use a replacement strategy to deal with undecodable data.
This commit is contained in:
Andrew Chin
2018-09-06 22:31:05 -04:00
committed by GitHub

View File

@@ -144,7 +144,7 @@ class NBTFileReader(object):
# Read the string
string = self._file.read(length)
# decode it and return
return string.decode("UTF-8")
return string.decode("UTF-8", 'replace')
def _read_tag_list(self):
tagid = self._read_tag_byte()