Skip to content

Commit

Permalink
Fazendo uma conversão simples para evitar erros de unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaribeiro committed Dec 19, 2016
1 parent 74906ea commit 9d645b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pytrustnfe/xml/filters.py
Expand Up @@ -24,6 +24,8 @@ def normalize_str(string):

def strip_line_feed(string):
if string:
if not isinstance(string, unicode):
string = unicode(string, 'utf-8', 'replace')
remap = {
ord(u'\t'): u' ',
ord(u'\n'): u' ',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
# coding=utf-8
from setuptools import setup, find_packages

VERSION = "0.1.11"
VERSION = "0.1.12"

setup(
name="PyTrustNFe",
Expand Down

0 comments on commit 9d645b0

Please sign in to comment.