ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <>
Subject Re: encoding stuff
Date Mon, 15 Mar 2004 17:08:21 GMT
Hi Matt,

Just this past week I ran into a problem using slightly different jdk 
versions on Solaris. One had the default character encoding as 
ISO-8859-1, the other had ISO-656-1. That was enough to break things for 
me. My solution was to use a Writer/OutputStream that allowed me to set 
the encoding type. It seems to me that jdk 1.2 used 8859-1 by default 
and it wasn't possible to change the encoding. With jdk 1.4, there are a 
number of the and classes that let you specify the 

Hope this helps!


Matt Benson wrote:

> Ack!  I am in the final stages of I/O redirection.  In
> fact, I was about to commit my changes when I
> cross-tested my last test case--transcoding--and found
> that it fails on Solaris with Sun JDK 1.4.2, but
> passes with Sun JDK 1.2.2.  Does anyone have any
> helpful information on this phenomenon?  Input
> encoding seems to be okay, but whenever I try to write
> output with a particular encoding, the results are not
> what I expect.  Often the resulting files are the
> wrong size, but sometimes they are the right size with
> the wrong content as well.  Obviously since my code is
> nowhere accessible I'm not looking for specific help
> (yet)... just if anyone knows of any common pitfalls
> I'd love to hear about them.
> Thanks,
> Matt
> __________________________________
> Do you Yahoo!?
> Yahoo! Search - Find what you’re looking for faster
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message