/** * Returns the best encoder for the system. * * @param []string $encoding_list (optional) Encodings to search through. * * @return \CharacterEncoder\Encoder A character encoder. */ public static function create(array $encoding_list = array()) { $encoder = new Encoder(static::getAdapter()); $encoder->setEncodings($encoding_list); return $encoder; }