Skip to content

Commit a6f0ea2

Browse files
committed
Use latin1 decoding
1 parent fe64b48 commit a6f0ea2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firmware/Tools/TCP_Client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def client(server, port):
77
sock.connect((server, port))
88
while True:
99
payload = sock.recv(1024)
10-
print(payload.decode(), end='')
10+
print(payload.decode('latin1'), end='')
1111

1212
if __name__ == "__main__":
1313

Firmware/Tools/TCP_Server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def client(server, port):
1919
except TimeoutError:
2020
keepGoing = False
2121
if len(payload) > 0:
22-
print(payload.decode(), end='')
22+
print(payload.decode('latin1'), end='')
2323
conn.close()
2424
print()
2525

0 commit comments

Comments
 (0)