From 6445ec5d451faf45f00a93f8c50ea9fde1436b25 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 bef5a53..c49bc59 100644 --- a/pytrustnfe/xml/__init__.py +++ b/pytrustnfe/xml/__init__.py @@ -46,6 +46,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():