From b4c656770ff78c0048df5be2b05ebf15f0d77629 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 29 Dec 2025 14:37:18 +0100 Subject: [PATCH] Strip unrenderable unicode sequences in info box --- nomadnet/ui/textui/Network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomadnet/ui/textui/Network.py b/nomadnet/ui/textui/Network.py index 242118d..fcf2a4e 100644 --- a/nomadnet/ui/textui/Network.py +++ b/nomadnet/ui/textui/Network.py @@ -85,7 +85,7 @@ class AnnounceInfo(urwid.WidgetWrap): type_string = "Peer " + g["peer"] try: - data_str = announce[2].decode("utf-8") + data_str = strip_modifiers(announce[2].decode("utf-8")) data_style = "" if trust_level != DirectoryEntry.TRUSTED and len(data_str) > 32: data_str = data_str[:32]+" [...]"