Merge pull request #1477 from overviewer/nbt_utf8_decode
NBT: Use a replacement strategy to deal with undecodable data.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user