logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Encoding: msg#00012

Subject: Re: Encoding

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:
xmlpull-dev-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 






Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>