You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Joel Rees <jo...@alpsgiken.gr.jp> on 2002/04/05 11:39:35 UTC

ant rejects shift-jis characters?

Trying ant for the first time. Build file and source files include some
Japanese (shift-JIS). Got the following error:

------------------
E:\...\WEB-INF\build.xml:1: Character conversion
error: "Unconvertible UTF-8 character beginning with 0x82" (line number may
be t
oo low).
------------------

So I tried putting the xml declaration line in:

<?xml version="1.0" encoding="Shift-JIS" ?>

Now I get

------------------
Buildfile: build.xml

BUILD FAILED

Error reading project file
------------------

If I drop into the source directory and run javac, it all compiles okay and
runs. What should I think?

Joel Rees
Alps Giken Kansai Systems Develoment
Suita, Osaka




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ant rejects shift-jis characters?

Posted by Joel Rees <jo...@alpsgiken.gr.jp>.
I must be having one of those bad-hair days.

Stefan Bodewig pointed out:


> On Fri, 5 Apr 2002, Joel Rees <jo...@alpsgiken.gr.jp> wrote:
> 
> > <?xml version="1.0" encoding="Shift-JIS" ?>
>                                      ^
> 
> should be an underscore according to
> <http://www.w3.org/TR/1998/REC-xml-19980210#NT-EncodingDecl>
> 
> Stefan

That was it. thanks.

Joel



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ant rejects shift-jis characters?

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 5 Apr 2002, Joel Rees <jo...@alpsgiken.gr.jp> wrote:

> <?xml version="1.0" encoding="Shift-JIS" ?>
                                     ^

should be an underscore according to
<http://www.w3.org/TR/1998/REC-xml-19980210#NT-EncodingDecl>

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>