Microsoft SDK for Java

getEncoding

This method of the Document class retrieves the character encoding information.

Syntax

public final String getEncoding();

Return Value

Returns the encoding information stored in the <?XML ...?> tag or the user-defined output encoding if it has been more recently set.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.