From d683ae6f40a24e13e23d1d2b3e572203dea5e209 Mon Sep 17 00:00:00 2001 From: Lude Ribeiro Date: Fri, 10 Dec 2021 13:48:44 -0300 Subject: [PATCH] Adicionando encode nas strings --- sigi/apps/servicos/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sigi/apps/servicos/views.py b/sigi/apps/servicos/views.py index ed3d97a..3844876 100644 --- a/sigi/apps/servicos/views.py +++ b/sigi/apps/servicos/views.py @@ -309,12 +309,12 @@ def export_csv(request): if _(u"Casa Legislativa") == atributo: lista.append(servico.casa_legislativa.nome.encode("utf-8")) lista.append(servico.casa_legislativa.municipio.uf.sigla.encode("utf-8")) - lista.append(servico.casa_legislativa.email) - lista.append(servico.casa_legislativa.telefone) + lista.append(servico.casa_legislativa.email.encode("utf-8")) + lista.append(servico.casa_legislativa.telefone.encode("utf-8")) elif _(u"Contato Interlegis") == atributo: - lista.append(servico.casa_legislativa.contato_interlegis) + lista.append(servico.casa_legislativa.contato_interlegis.encode("utf-8")) if servico.casa_legislativa.contato_interlegis is not None: - lista.append(servico.casa_legislativa.contato_interlegis.email) + lista.append(servico.casa_legislativa.contato_interlegis.email.encode("utf-8")) else: lista.append("") elif _(u"Produto") == atributo: