[svn] r6849: repo-scripts/mailer.py

malekith svnadmin at nemerle.org
Wed Nov 8 20:50:43 CET 2006


Log:
Try to use utf-8 encoding.

Author: malekith
Date: Wed Nov  8 20:50:41 2006
New Revision: 6849

Modified:
   repo-scripts/mailer.py

Modified: repo-scripts/mailer.py
==============================================================================
--- repo-scripts/mailer.py	(original)
+++ repo-scripts/mailer.py	Wed Nov  8 20:50:41 2006
@@ -169,7 +169,7 @@
            'Message-ID: <%d at svn.nemerle.org>\n' \
 	   'Mime-Version: 1.0\n' \
 	   'Content-Type: text/plain;\n' \
-	   '  charset=iso8859-2\n' \
+	   '  charset=utf-8\n' \
 	   'Content-Disposition: inline\n' \
 	   'Content-Transfer-Encoding: 8bit\n' \
            % (self.from_hdr, self.to_addr, subject, \
@@ -329,7 +329,8 @@
 
   log = repos.get_rev_prop(svn.core.SVN_PROP_REVISION_LOG) or ''
   try:
-      log = unicode(log, 'utf8').encode('iso-8859-2')
+      log = unicode(log, 'utf8')
+      #log = unicode(log, 'utf8').encode('iso-8859-2')
   except UnicodeError:
       pass
   output.write('Log:\n%s\n\n' % log)



More information about the svn mailing list