pub fn create_encoder(encoding: EncodingV2) -> Box<dyn Encoder>
Create an encoder for the given encoding type.