commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: svn commit: r1343020 - in /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging: ./ common/ formats/bmp/ formats/icns/ formats/jpeg/iptc/ formats/png/ formats/psd/ formats/tiff/ formats/tiff/fieldtypes/ icc/ palette/
Date Sun, 27 May 2012 13:47:55 GMT
Le 27/05/2012 13:41, Gary Gregory a écrit :

>> @@ -62,7 +63,7 @@ public class FormatCompliance {
>>      }
>>
>>      public void dump() {
>> -        dump(new PrintWriter(new OutputStreamWriter(System.out)));
>> +        dump(new PrintWriter(new OutputStreamWriter(System.out, Charset.defaultCharset())));
>>      }
>
> That fixes the warning but not the real issue. Why not use UTF-8 to
> get a platform independent result?

If this simply dump the data on the console I think the default encoding 
is a sensible choice. Otherwise this will output corrupted characters 
when run from the command line.


Emmanuel Bourg




Mime
View raw message