diff --git a/geomagio/edge/MiniSeedInputClient.py b/geomagio/edge/MiniSeedInputClient.py index b273604a63fe0ce386f4851216982b63d25544ff..0edc200008e25bccfd374f4c3bc10d31f31194f8 100644 --- a/geomagio/edge/MiniSeedInputClient.py +++ b/geomagio/edge/MiniSeedInputClient.py @@ -78,7 +78,9 @@ class MiniSeedInputClient(object): buf = io.BytesIO() streams = self._pre_process(stream) for stream in streams: - stream.write(buf, format="MSEED", reclen=512) + stream.write( + buf, encoding=self.encoding.upper(), format="MSEED", reclen=512 + ) # send data self.socket.sendall(buf.getvalue())