Thanks for the response Arun.
I have already added mentioned line in
my coding with
org.dom4j.io.OutputFormat.setEncoding("UTF-8").
Still error persists!!!!
Shrirang.
--- arun jit singh <[EMAIL PROTECTED]> wrote:
> Shrirang:
>
> You might have to provide more information, but one
> thing I had to do to set
> the correct encoding
> name was to set the encoding itself:
>
> DocumentBuilder db =
> dbf.newDocumentBuilder();
>
> java.io.ByteArrayInputStream bIS = new
> java.io.ByteArrayInputStream(
> xmlStr.getBytes());
> org.xml.sax.InputSource is = new
> org.xml.sax.InputSource(bIS);
> is.setEncoding("ISO-8859-1");
>
> I used this to parse my xml document.
>
> I hope this helps
>
> ArunJit.
>
>
> >From: shrirang moharil <[EMAIL PROTECTED]>
> >To: [email protected]
> >Subject: [dom4j-user] Error with xml encoding
> >Date: Wed, 10 May 2006 14:05:53 +0100 (BST)
> >
> >Hi,
> >
> >I submit xml message to my engine on linux.
> >the first line of message is :-
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> >
> >my tomcat server console gives me error below.
> >
> >org.dom4j.DocumentException: Error on line 1 of
> >document : Invalid encoding name "en_US.UTF-8"
> >
> >i checked the locales available on machin
> >which is "en_US.utf8".
> >
> >even if i change this to en_US.UTF-8
> >
> >still same error comes ?
> >
> >any clues ?
> >
> >thanks.
> >
> >Shrirang.
> >
> >
> >
> >
> >
>
>__________________________________________________________
> >Yahoo! India Answers: Share what you know. Learn
> something new.
> >http://in.answers.yahoo.com
> >
> >
>
>-------------------------------------------------------
> >Using Tomcat but need to do more? Need to support
> web services, security?
> >Get stuff done quickly with pre-integrated
> technology to make your job
> >easier
> >Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
>
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >_______________________________________________
> >dom4j-user mailing list
> >[email protected]
>
>https://lists.sourceforge.net/lists/listinfo/dom4j-user
>
>
>
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new.
http://in.answers.yahoo.com
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user