For information on converting to InterSystems IRIS, see the
InterSystems IRIS Adoption Guide
and the InterSystems IRIS In-Place Conversion Guide,
both available on the WRC Distributions page (login required).
Copy from a stream containing an XML header to another stream with the XML header encoding label changed to the value given in pEncoding.
Returns the output stream which if not supplied is created using the same stream class as the input stream.
If no change to the encoding label results and if no output stream is supplied then the original input stream is returned as the output stream without copying.