From 80ea0c2420c0b85d2a2d4181b2751b73b7272083 Mon Sep 17 00:00:00 2001 From: Gabriel Balog Date: Fri, 10 Nov 2017 10:49:44 -0200 Subject: [PATCH] Correcao de retorno da prefeitura NFS-e --- pytrustnfe/xml/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytrustnfe/xml/__init__.py b/pytrustnfe/xml/__init__.py index 5cf7454..f91c25c 100644 --- a/pytrustnfe/xml/__init__.py +++ b/pytrustnfe/xml/__init__.py @@ -58,6 +58,7 @@ def render_xml(path, template_name, remove_empty, **nfe): def sanitize_response(response): + response = re.sub('encoding="UTF-8"', '', response) tree = etree.fromstring(response) # Remove namespaces inuteis na resposta for elem in tree.getiterator():