set_encoding


Description:

[ Version ( since = "3.14" ) ]
public void set_encoding (SourceEncoding? encoding)

Sets the encoding.

If encoding is null, the UTF-8 encoding will be set. By default the encoding is taken from the SourceFile.

Parameters:

this

a SourceFileSaver.

encoding

the new encoding, or null for UTF-8.