• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4077: Invalid quoted-printable encoding in mail subject lines

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine I18N Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

With site language set to ru and site charset utf-8 TWiki encodes subject lines in email messages like this:

Subject: [Twiki] =?iso-8859-1?q?TWiki_-_=D0=A0=D0=B5=D0=B3=D0=B8=D1=81=D1?=
   =?iso-8859-1?q?=82=D1=80=D0=B0=D1=86=D0=B8=D1=8F_=D0=B4=D0=BB=D1?=
   =?iso-8859-1?q?=8F_TWikiUser_=28user=40my=2Esite=29?=

(this example is taken from registration notification email).

The text is quoted-printable encoded UTF-8, but MIME encoding is declared to be iso-8859-1.

-- TWiki:Main/AlexanderSmishlajev - 16 May 2007

This is a generic TWiki problem, not specific to MailerContrib I believe.

CC

I applied the patch attached to bug item 3969 and use the following settings in LocalSite.cfg:

  • $TWiki::cfg{Site}{Locale} = 'zh_TW.utf8';
  • $TWiki::cfg{Site}{CharSet} = 'utf-8';
  • $TWiki::cfg{Site}{Lang} = 'zh';
  • $TWiki::cfg{Site}{FullLang} = 'zh-tw';

While the email body is in utf-8 and correctly displayed, the headers are not. They are not even quoted-printable in my system. I haven't spent time looking into the problem but it should be solved before next major release.

-- TWiki:Main.HowardTsai - 15 Aug 2007

I attached a patch that fix the encoding of the "From: " and "Subject: " line in UTF-8 environment. It include puts quotation marks `"' to senders (e.g., "TWiki Administrator").

-- TWiki:Main.HowardTsai - 19 Aug 2007

TWiki doesn't support Unicode properly so I'm not too surprised, but this sort of thing does need fixing.

Thanks for the patch, which of course is very UTF8-specific - we really need full TWiki:Codev.UnicodeSupport, as there are more and more areas where we need UTF-8 or simply need the power of Unicode to fix I18N issues.

-- TWiki:Main.RichardDonkin - 23 Aug 2007

ItemTemplate
Summary Invalid quoted-printable encoding in mail subject lines
ReportedBy TWiki:Main.AlexanderSmishlajev
Codebase 4.1.2
SVN Range TWiki-4.1.2, Sun, 13 May 2007, build 13714
AppliesTo Engine
Component I18N
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch utf8-email-header.patch r1 manage 9.3 K 2007-08-19 - 14:25 UnknownUser UTF-8 patch for header lines, also enclose sender/recipient in quotes
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2007-08-23 - RichardDonkin
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback