Microsoft SDK for Java

setEncoding

This method of the Document class sets the character encoding for output. Eventually it sets the ENCODING stored in the <?XML ...?> tag, but not until the document is saved. You should not call this method until the Document has been loaded.

Syntax

public final void setEncoding(String encoding);

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