Skip to content

Commit e28687d

Browse files
authored
Merge pull request #710 from threedworld-mit/avatar_ids_utf8
UT8 encoding for AvatarIds output data
2 parents a07489f + df4a247 commit e28687d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/tdw/output_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,7 @@ def __init__(self, b: bytes):
19441944
lengths: np.ndarray = np.frombuffer(b[12:offset], dtype=np.int32)
19451945
self._ids: List[str] = list()
19461946
for length in lengths:
1947-
self._ids.append(b[offset: offset + length].decode('ascii'))
1947+
self._ids.append(b[offset: offset + length].decode('utf8'))
19481948
offset += length
19491949
self._types: np.ndarray = np.frombuffer(b[offset:], dtype=np.uint8)
19501950

0 commit comments

Comments
 (0)