Property: Encoding as String
This property provides access to the document's encoding value. However, this property can only be accessed when the document is opened in spyViewGrid, spyViewText or spyViewAuthentic. See CurrentViewMode on how to detect that a document's actual view mode.
This property makes the method SetEncoding obsolete.
Possible values are, for example:
The document object is no longer valid.
Invalid address for the return parameter was specified.
Operation not supported in current view mode.