pub fn char_to_encoding(name: &str) -> i32
pg_char_to_encoding: the number of an encoding name or alias, or -1.
pg_char_to_encoding