~emersion/python-emailthreads

b0287974e19c3858e4d3261d622e55096a6061a8 — Simon Ser 1 year, 1 month ago 230ed67 master v0.1.1
Replace invalid UTF-8 codepoints
2 files changed, 2 insertions(+), 2 deletions(-)

M emailthreads/threads.py
M emailthreads/util.py
M emailthreads/threads.py => emailthreads/threads.py +1 -1
@@ 41,7 41,7 @@ def normalize_whitespace(text):

def get_text(msg):
	text_part = get_text_part(msg)
	text = text_part.get_payload(decode=True).decode('utf-8', 'ignore')
	text = text_part.get_payload(decode=True).decode('utf-8', 'replace')
	text = normalize_whitespace(text)
	return text


M emailthreads/util.py => emailthreads/util.py +1 -1
@@ 36,7 36,7 @@ def normalize_whitespace(text):

def get_text(msg):
	text_part = get_text_part(msg)
	text = text_part.get_payload(decode=True).decode('utf-8')
	text = text_part.get_payload(decode=True).decode('utf-8', 'replace')
	text = normalize_whitespace(text)
	return text