I need to output Japanese to the IntelliJ console for my webapp logging. When I run a junit test, the correct UTF-8 chars show up. While running inside of Tomcat in IntelliJ, the characters are messed up. How do I fix this?
I am running IDEA 10.0.3 with the settings File Encoding -> IDE Encoding set to UTF-8. I even put -Dfile.encoding=UTF-8 inside of the catalina.bat file and verified the encoding is UTF-8 with:
System.out.println(System.getProperty("file.encoding") + ": é à ê");
but I get:
UTF-8: é à ê
instead.
What else can I set to make sure a Tomcat webapp displays UTF-8 in the IDEA console? Why does it work in a unit test but not a webapp?
Thanks.