pub fn encode_string(s: &str, term: &str) -> DcmResult<Vec<u8>>
Encodes a string using the specified DICOM character set term.