It's mainly for StatusLogger, but that idea did cross my mind.

On 23 March 2014 21:00, Ralph Goers <[email protected]> wrote:

> I’m sorry, I didn’t ask the question correctly.  SimpleLogger doesn’t
> currently accept a charset. Are you planning on adding a new properly to
> SimpleLoggerContext to support this?  I don’t really have an objection but
> am just wondering when other than the platform’s default encoding would
> want to be used. After all, SimpleLogger wasn’t really meant to be what
> people actually used on purpose.
>
> Ralph
>
> On Mar 23, 2014, at 6:01 PM, Matt Sicker <[email protected]> wrote:
>
> 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 <[email protected]> wrote:
>
>> How will it improve charset handling?  Currently a charset isn’t
>> configured.
>>
>> Ralph
>>
>> On Mar 23, 2014, at 3:58 PM, Matt Sicker <[email protected]> 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 <[email protected]>
>>
>>
>>
>
>
> --
> Matt Sicker <[email protected]>
>
>
>


-- 
Matt Sicker <[email protected]>

Reply via email to