Documentation for method encoder

Documentation for method encoder, assembled from the following types:

class Encoding

From Encoding

(Encoding) method encoder

method encoder(Encoding:D: *%options --> Encoding::Encoder)

Gets a character encoder instance for this encoding, configured with the provided options. Options vary by encoding. The built-in encodings all support both replacement (either a Str replacement sequence or True to use a default replacement sequence for unencodable characters) and translate-nl (when set to True, turns \n into \r\n if the current platform is Windows).