Most Layouts accept a charset attribute. You should try specifying "ISO-8859-1" there. If that doesn't work please let us know.
Ralph On Nov 24, 2012, at 11:37 AM, Rainer Hirschmiller wrote: > Hi, > > I'm using Windows 7, Java 7 and Log4j2 beta3 and Eclipse Juno. > > I'm reading data from a database and log the data for checking. The data > contain German special characters. These data are displayed well in the > application, e.g. in tables, but wrong while logging the data. > > The application reports Cp1252 as used charset. > > I tried to set file.encoding in the run configuration / arguments to > -Dfile.encoding=ISO-8859-1 but the reported charset is not changed. > > Is this a problem of log4j2? Or do I make something wrong? > > Regards > Rainer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org