Instead of logback trying to automatically guess the correct charset, how about setting the correct charset in PatternLayoutEncoder ?
But how would I know ahead of time what charset is using by each user's console? The charset is set at the OS level, and could be different on each user's machine—and as explained above, it might not even match the system default charset! If Logback uses a charset that doesn't match the console charset, then one or more characters will be garbled. Maybe I misunderstood the question? |