Progress
Language Reference
ENCODING Attribute
Returns the name of the character encoding used to encode the contents of an XML document (for example, UTF-8, UTF-16, ASCII, and so on). The ENCODING attribute is set to the name specified in a document’s encoding declaration when a document is loaded using the LOAD() method.
The ENCODING attribute can be set to the name of the desired encoding to be used when the document’s SAVE( ) method is called for output.
Data Type: CHARACTERAccess: Readable/WritableApplies To: X-document Object HandleThe default encoding is UTF-8. If you do not set the ENCODING attribute, when you save a document it will not have an encoding declaration in its prologue, but the encoding will still be UTF-8.
The following example demonstrates the use of the ENCODING attribute:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |