title: log4j encoding utf8
body: <p>I use Java and Log4j..</p>
  
  <p>I want to log a string with german special characters, like for example Ü Ä ä etc..
  But in my LogFile it appears like this:</p>
  
  <pre><code>&lt;E4&gt;&lt;FC&gt;&lt;F6&gt;
  </code></pre>
  
  <p>log4j.properties</p>
  
  <pre><code>log4j.rootLogger = ALL, rollingFile
  
  log4j.appender.rollingFile=org.apache.log4j.RollingFileAppender
  log4j.appender.rollingFile.File=/home/tomcat/logs/debug.log 
  log4j.appender.rollingFile.MaxFileSize=10MB
  log4j.appender.rollingFile.MaxBackupIndex=2
  log4j.appender.rollingFile.layout = org.apache.log4j.PatternLayout
  log4j.appender.rollingFile.layout.ConversionPattern=%d %p %c - %m%n
  log4j.appender.rollingFile.encoding=UTF-8
  </code></pre>