Skip to content

Commit

Permalink
Merge pull request #710 from threedworld-mit/avatar_ids_utf8
Browse files Browse the repository at this point in the history
UT8 encoding for AvatarIds output data
  • Loading branch information
alters-mit authored May 31, 2024
2 parents a07489f + df4a247 commit e28687d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/tdw/output_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ def __init__(self, b: bytes):
lengths: np.ndarray = np.frombuffer(b[12:offset], dtype=np.int32)
self._ids: List[str] = list()
for length in lengths:
self._ids.append(b[offset: offset + length].decode('ascii'))
self._ids.append(b[offset: offset + length].decode('utf8'))
offset += length
self._types: np.ndarray = np.frombuffer(b[offset:], dtype=np.uint8)

Expand Down

0 comments on commit e28687d

Please sign in to comment.