Hi Elliotte,

Well spotted, actually I was after the real encoding! However, as you mentioned this approach is only reliable 90% of the time, so I might end up using the declared encoding instead. From what I understand, I will get this information on the startElement() invocation.

To summarise, the mistakes I was making were:
* I was instantiating the Locator myself.
* I declared the Handler setDocumentLocator() method with the Locator2 type

Thanks a lot for your help.

Olivier DURAND - odur...@clever-age.com
Clever Age  - http://www.clever-age.com
37, Bd des Capucines    -   75002 Paris
Tel:..................+33 1 53 34 66 10
FAX:..................+33 1 53 34 65 20



Elliotte Harold wrote:
Do you want the declared encoding or the real encoding? If the latter, see here:

http://www.ibm.com/developerworks/library/x-tipsaxxni/


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to