Permalink
Browse files

Merge pull request #1477 from overviewer/nbt_utf8_decode

NBT: Use a replacement strategy to deal with undecodable data.
  • Loading branch information...
eminence committed Sep 7, 2018
2 parents bf2f9d2 + e76d364 commit b789641e6e3f9be4d738452fbefb1e4519af7b48
Showing with 1 addition and 1 deletion.
  1. +1 −1 overviewer_core/nbt.py
View
@@ -144,7 +144,7 @@ def _read_tag_string(self):
# 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()

0 comments on commit b789641

Please sign in to comment.