diff --git a/pytrustnfe/nfse/floripa/__init__.py b/pytrustnfe/nfse/floripa/__init__.py index a8282d3..817c430 100644 --- a/pytrustnfe/nfse/floripa/__init__.py +++ b/pytrustnfe/nfse/floripa/__init__.py @@ -74,10 +74,10 @@ def _send(certificado, method, **kwargs): "Authorization": "Bearer %s" % kwargs['access_token']} r = requests.post(url, headers=headers, data=xml_send) - response, obj = sanitize_response(r.text.strip().encode('utf-8')) + response, obj = sanitize_response(r.text.strip()) return { 'sent_xml': xml_send, - 'received_xml': response, + 'received_xml': response.encode('utf-8'), 'object': obj, 'status_code': r.status_code, } diff --git a/setup.py b/setup.py index 94b03ef..2bea4bc 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -VERSION = "0.10.5" +VERSION = "0.10.6" setup(