logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: Would like to change a bit of the SimpleLogger API. Feedback requested.
Date Mon, 24 Mar 2014 01:01:53 GMT
It's right there in the docs:
http://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html

All characters printed by a PrintStream are converted into bytes using the
platform's default character encoding. The
PrintWriter<http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html>
class
should be used in situations that require writing characters rather than
bytes.


On 23 March 2014 18:54, Ralph Goers <ralph.goers@dslextreme.com> wrote:

> How will it improve charset handling?  Currently a charset isn’t
> configured.
>
> Ralph
>
> On Mar 23, 2014, at 3:58 PM, Matt Sicker <boards@gmail.com> wrote:
>
> Would it be alright to migrate to using PrintWriter instead of
> PrintStream? This improves charset handling, plus Java recommends using
> Writers over OutputStreams for textual content.
>
> --
> Matt Sicker <boards@gmail.com>
>
>
>


-- 
Matt Sicker <boards@gmail.com>

Mime
View raw message