Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
concat task on group of utf 8 files w/ BOM

concat task on group of utf 8 files w/ BOM

2007-08-01       - By Dominique Devienne
Reply:     1     2     3     4     5     6  

On 8/1/07, Peter Reilly <peter.kitt.reilly@(protected)> wrote:
> On 8/1/07, Dominique Devienne <ddevienne@(protected)> wrote:
> > On 8/1/07, Peter Reilly <peter.kitt.reilly@(protected)> wrote:
> > > I do not think that filter chains will help here as they
> > > operate on Readers and not on input streams.
> >
> > Actually, that may be why it "should" work. Java knows about optional
> > BOMs and does the right thing, as long as you tell it that the
> > encoding is UTF-16.
>
> The encoding is not UTF-16, it is UTF-8. Having a BOM in UTF-8
> makes no sense, as a byte cannot be byte ordered. However, it
> is allowed by the UTF standard as an optional feature.
> see: http://issues.apache.org/bugzilla/show_bug.cgi?id=28049 and
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058

Hmmm, OK. I missed the part where Alex wrote that he was using UTF-8
with BOM, instead of UTF-16. I assumed the latter, since indeed I
didn't know one could put a BOM with UTF-8 data! (useless indeed).
--DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.