logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1541408 - /logging/log4net/trunk/src/log4net/Appender/SmtpAppender.cs
Date Wed, 13 Nov 2013 07:24:07 GMT
Author: dpsenner
Date: Wed Nov 13 07:24:07 2013
New Revision: 1541408

URL: http://svn.apache.org/r1541408
Log:
LOG4NET-405 fixed default encoding to be UTF8

According to http://msdn.microsoft.com/en-us/library/system.text.encoding.default UTF8 is
a better choice than Default.

Modified:
    logging/log4net/trunk/src/log4net/Appender/SmtpAppender.cs

Modified: logging/log4net/trunk/src/log4net/Appender/SmtpAppender.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/log4net/Appender/SmtpAppender.cs?rev=1541408&r1=1541407&r2=1541408&view=diff
==============================================================================
--- logging/log4net/trunk/src/log4net/Appender/SmtpAppender.cs (original)
+++ logging/log4net/trunk/src/log4net/Appender/SmtpAppender.cs Wed Nov 13 07:24:07 2013
@@ -506,8 +506,8 @@ namespace log4net.Appender
 		private string m_from;
 		private string m_subject;
 		private string m_smtpHost;
-		private Encoding m_subjectEncoding = Encoding.Default;
-		private Encoding m_bodyEncoding = Encoding.Default;
+		private Encoding m_subjectEncoding = Encoding.UTF8;
+		private Encoding m_bodyEncoding = Encoding.UTF8;
 
 		// authentication fields
 		private SmtpAuthentication m_authentication = SmtpAuthentication.None;



Mime
View raw message