incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 118791] XMailMessage attachment unusable if file name (ReadableName) contains non-ASCII characters
Date Mon, 16 Jan 2012 12:26:52 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=118791

--- Comment #3 from Ariel Constenla-Haile <arielch@apache.org> 2012-01-16 12:26:52 UTC
---
@DonJaime: please replace 

${ROOT_INST_DIR}/openoffice.org/basis3.${MINOR}/program/mailmerge.py

with the one attached in this bug (first back-up the original one).

The fix to this issue is encoding the ReadableName to utf-8:

msgattachment.add_header(\
'Content-Disposition', \
'attachment', \
filename=('utf-8','',attachment.ReadableName.encode('utf-8')))

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Mime
View raw message