Yes I am trying to open it in ISO-8859-1 encoding.
I think I need to keep the same encoding as URL.

Let me try that.

Thanks,
-R


On 4/11/07, Nichiketa s <[EMAIL PROTECTED]> wrote:

While opening streams you can specify the Encoding for the document.
Please
check the Java docs for the syntax...

- Harjit


>From: "Ranjan Baisak" <[EMAIL PROTECTED]>
>To: dom4j-user@lists.sourceforge.net
>Subject: [dom4j-user] non-english chars with XPPReader
>Date: Wed, 11 Apr 2007 15:07:18 -0400
>
>Hello Group,
>                 I am reading a non-english document from a remote URL
>using
>following syntax
>
>
>URL url = *new* URL(uri);
>
>InputStream inStream = url.openConnection().getInputStream();
>
>Document doc = xppReader.read(inStream);
>
>And displaying the content of Document after doing some manipulation
using
>asXML() method.
>
>However I am loosing all characters and getting bunch of ascii
characters.
>I
>am not sure, how can I retain the original characters.Any input would be
>appreciated?
>
>
>
>regards,
>
>Ranjan


>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
>opinions on IT & business topics through brief surveys-and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


>_______________________________________________
>dom4j-user mailing list
>dom4j-user@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/dom4j-user

_________________________________________________________________
The average US Credit Score is 675. The cost to see yours: $0 by Experian.

http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to