classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposed java.io.OutputStreamWriter patch


From: Mark Wielaard
Subject: Re: Proposed java.io.OutputStreamWriter patch
Date: Sun, 28 Mar 2004 20:35:05 +0200

Hi,

On Sat, 2004-03-27 at 15:23, Jeroen Frijters wrote:
> Currently, if you System.out.println() a string containing an
> unencodeable character, the line gets silently swallowed, instead the
> unencodeable character should be replaced by a question mark (at least
> that's what Sun does on Windows).
> 
> This behavior doesn't appear to be specified anywhere, but testing
> suggests that the proper way to do this is by calling setBadCharValue on
> the Encoder in OutputStreamWriter.
> 
> OK to apply?

This looks fine to me.
The new java.nio.charset.CharsetEncoder also seems to contain this
functionality so it should be easy to switch to that (when someone has
time to rewrite our current EncodingManger approach to it).

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]