Emailing My Phone From Log4J

I have JBoss' log4j configured to email my mobile phone using the SMTPAppender. My SE W810i didn't seem to want to display the messages with stacktraces, though. It said the message used an unsupported encoding.

By adding the <param name = "Encoding" value = "iso-8859-1"/> parameter to the appender configuration (jboss-log4j.xml), I forced the messages down to an encoding that my phone does understand, and now it works nicely.


Filed Under: Java Computers Mobile Web-Dev Blog-Code