[Moin-user] [Moin-User] notification email problem after upgrade
Thomas Waldmann
tw-public at gmx.de
Mon Oct 2 05:28:59 EDT 2006
> I've applied that fix, but I still have the following "problem":
>
> emails from MoinMoin (e.g. page updated notifications) have the
> Subject line quoting of "special" characters (e.g. "[" and "]") in
> utf-8
>
> example -> Subject:
> =?utf-8?q?=5BMy_Wiki=5D_Update_of_=22SomePage=22_by?=
> =?utf-8?q?_SomeOne?=
>
>
> How can I get MoinMoin to just send the subject line without doing
> that (i.e. just as ascii)?
>
The "problem" is that moin is fully unicode internally and only utf-8
can be used to encode all unicode chars (and thus, moin uses either
unicode or utf-8 all over the place).
What you could do is something like:
try:
... encode subject to ascii ...
except UnicodeEncodeError:
.... encode subject to utf-8 ...
More information about the Moin-user
mailing list