Re: Encoding

Stefan Haustein <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Organization Univ. Dortmund FB 4 LS 8
Message-ID <[email protected]>

Nikhil C. Khedkar wrote:
> Hi,
>   can the pull parser detect the encoding of the
> Reader (XML/XSD streams) on its own, which are
> submitted for parsing?


Hi,

this is possible only if an XML declaration is given,
since there is no way to ask a Reader for the encoding.

If you want the parser to determine the encoding
using the algorithm provided in the XML spec,
you must provide an InputStream and set the encoding
parameter to null

Best,
Stefan

--
Stefan Haustein
Co-Author, Java 2 Micro Edition Application Development





------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/JjlUgA/vN2EAA/kG8FAA/2U_rlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.