Michael,

Yes, absolutely. One would need to modify the activateOptions mehtod as you have indicated. I would appreciate if you could file a bug report reproducing the contents of your message.

At 15:07 09.01.2003 +0800, you wrote:
Hi,

Although ConsoleAppender extends the WriterAppender, it does not follow
the rule of character encoding.  Given the source code of
ConsoleAppender:

    if(target.equals(SYSTEM_OUT)) {
      setWriter(new OutputStreamWriter(System.out));
    } else {
      setWriter(new OutputStreamWriter(System.err));
    }

If I want to output characters other than the system default character
set, the ConsoleAppender outputs "?".  Is it better modify the code as
below?

    if(target.equals(SYSTEM_OUT)) {
      setWriter(createWriter(System.out));
    } else {
      setWriter(createWriter(System.err));
    }

--
Michael Zhou <[EMAIL PROTECTED]>
--
Ceki



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to