"Experimental - subject to change"
Set the encoding which will be required for use with the XML text read via a stream opened by this input source. This will update the wrapped input source object.
This is usually not set, allowing the encoding to be sensed in the usual XML way. However, in some cases, the encoding in the file is known to be incorrect because of intermediate transcoding, for instance encapsulation within a MIME document.
- Parameters:
-
| encodingStr | The name of the encoding to force. |
Reimplemented from InputSource.