public getEncoding() as String:
Returns the byte-stream or URI encoding.
Encoding name, or null.
null
encoding = input.getEncoding()