Created attachment 88029 [details] zip file with plain text email, html email, greek letters image (lower upsilon in red) Problem description: Greek letter υ (lower Upsilon) is malformed in plain-text and html emails created by mail-merge Steps to reproduce: 1. include letter υ (lower Upsilon) in a paragraph 2. select to send plain-text or html email Current behavior: see attached docs Expected behavior: see attached docs Operating System: Debian Version: 4.1.2.3 release
I just took a closer look, and this is what i have original text: ς,ε,ρ,τ,υ 1. html email =CF=82,=CE=B5,=CF=81,=CF=84,=CF ,=CE=B8 2. plain text (to HEX) CF 82 2C CE B5 2C CF 81 2C CF 84 2C CF 0D 0A 2C CE B8 (2C=",") So in both cases instead of CF 85 (upsilon) we have CF 0D 0A
It is a bug in Python 3. Try this sample script: # coding=utf-8 import email import email.charset import email.message c = email.charset.Charset('utf-8') c.body_encoding = email.charset.QP m = email.message.Message() m.set_payload("This is a Greek letter upsilon: υ", c) print(m.as_string()) Actual result: "This is a Greek letter upsilon: =CF" Expected result: "This is a Greek letter upsilon: =CF=85" As a workaround, we could use base64 instead of quoted-printable.
See also: http://bugs.python.org/issue20206
Andras Timar committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=65be22476b586637ecccc6b96fab187e5933cd00 fdo#70796 fix quoted printable encoding bug in internal Python The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
I assume the above commit fixes the problem
(In reply to comment #5) > I assume the above commit fixes the problem Yes, but obviously only for builds that use internal Python.
Andras Timar committed a patch related to this issue. It has been pushed to "libreoffice-4-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=00fc621899ccca1e316e956796d978210d324c5f&h=libreoffice-4-2 fdo#70796 fix quoted printable encoding bug in internal Python It will be available in LibreOffice 4.2.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.