From 3e4d62c84adfc67919820d21e2176187d8e293cf Mon Sep 17 00:00:00 2001 From: Oliver Joos Date: Thu, 13 Aug 2026 23:06:57 +0200 Subject: [PATCH] fix: use stricter encoding names Since commit micropython/micropython@11d002be and following (2026-07-20) MicroPython treats encoding names more strict: only "utf-8", "utf8" or "ascii" are valid, lower-case! --- src/mdns_client/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdns_client/util.py b/src/mdns_client/util.py index 6ff27fd..057d760 100644 --- a/src/mdns_client/util.py +++ b/src/mdns_client/util.py @@ -33,7 +33,7 @@ def check_name(n: str) -> "List[bytes]": n = n.split(".") if n[-1] == "": n = n[:-1] - n = [i.encode("UTF-8") if isinstance(i, str) else i for i in n] + n = [i.encode("utf-8") if isinstance(i, str) else i for i in n] return n