Skip to content

Commit adc9478

Browse files
committed
use explicit utf-8
1 parent b70bcab commit adc9478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/eventBased/politePingPong/politeAlice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def handle_pong(writer: StreamWriter) -> str:
8383
if not data:
8484
print(f"Alice [{state}]: connection dropped unexpectedly.")
8585
break
86-
msg = data.decode().strip()
86+
msg = data.decode("utf-8")
8787
print(f"Alice [{state}]: received '{msg}'")
8888

8989
handler = dispatch.get((state, msg))

0 commit comments

Comments
 (0)