From 67e544effc6d86cf72c2ed71da6d0d61994474b6 Mon Sep 17 00:00:00 2001 From: Dpeta Date: Thu, 1 Apr 2021 22:15:38 +0200 Subject: [PATCH] Unicode was a mistake ::= CR LF """ - element = element.decode("utf-8") + try: + element = element.decode("utf-8") + except: + try: + element = element.decode("latin-1") + except: + # This shouldn't happen, but if it does: + element = "" + parts = element.strip().split(" ") if parts[0].startswith(':'): prefix = parts[0][1:]