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]>

Reply via email to