You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Wai-Yip Tung <wt...@cisco.com> on 2002/09/20 07:02:12 UTC

get encoding?

After parsing, is there anyway I can find out the character encoding used?

thanks,

Wai yip tung

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: get encoding?

Posted by Xuemin Guan <xu...@appresso.com>.
There is no way on a API level. If you really want to know the 
originally declared encoding, the only way to do so is to scan the
bytes stream, and catch the <?xml version="1.0" encoding="Shift_JIS" ?>
bit.

Wai-Yip Tung wrote:
> After parsing, is there anyway I can find out the character encoding used?
> 
> thanks,
> 
> Wai yip tung
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
> 
> 
> 


-- 
Xuemin Guan
Java & XML Developer
Appresso SpA (www.appresso.com)
Tel:  +81-3-4412-7790 (Direct)
       +81-3-4412-7700 (Representative)
Email: xuemin@appresso.com


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org