Skip to content

Commit

Permalink
fixed issue with encoding (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
praneethratna authored Nov 16, 2023
1 parent 6f889c0 commit 4e8864e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echopype/convert/utils/ek_raw_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ def _unpack_contents(self, raw_string, bytes_read, version):
for indx, field in enumerate(self.header_fields(version)):
data[field] = header_values[indx]
if isinstance(data[field], bytes):
data[field] = data[field].decode()
data[field] = data[field].decode(encoding="unicode_escape")

data["timestamp"] = nt_to_unix((data["low_date"], data["high_date"]))
data["bytes_read"] = bytes_read
Expand Down

0 comments on commit 4e8864e

Please sign in to comment.