Subject: | UTF-8 special characters in subject line not encoded correctly |
Date: | Wed, 25 Jul 2007 00:02:09 +0200 |
To: | bug-SVN-Notify [...] rt.cpan.org |
From: | Jörg <jo [...] bitvalve.org> |
Hello,
I use SVN::Notify version 2.66
on a Debian etch GNU/Linux 2.6.16.18-amd64 System.
svn, version 1.4.2 (r22196)
perl, v5.8.8
We write German log messages and German Umlauts do not work properly:
I use the following command in the post-commit script:
LANG=en_US.utf8 /usr/bin/svnnotify -p "${REPOS}" -r "${REV}" -s
"${SENDMAIL}" -l "${SVNLOOK}" -H "HTML::ColorDiff" -t "...@example.org"
[Setting LANG=de_DE.utf8 does not work for us, since the output of
svnlook is then localized and SVN::Notify cannot handle that correctly,
it seems.]
The log message inline in the email is encoded correctly, it is
"Hello UTF-8 Test: Umlaute ä ö ü"
but the subject field of the email is encoded like this:
"Subject: [37] Hello UTF-8 Test:
=?UTF-8?Q?=20Umlaute=20=EF=BF=BD=20=EF=BF=BD=20=EF=BF=BD?="
But the byte string EF BF BD is Unicode character U+FFFD, which is the
REPLACEMENT CHARACTER for incoming characters whose value is unknown.
Is this a bug, or am I too stupid to configure SVN::Notify correctly?
Any help is appreciated
Thanks in advance
Jörg