pub fn convert_from_utf8(utf8_bytes: &[u8], encoding: Encoding) -> Vec<u8> ⓘExpand description
Convert UTF-8 content to the specified encoding for saving
Used when saving files to convert internal UTF-8 representation back to the original (or user-selected) encoding.
Note: This does NOT add BOM - the BOM should be handled separately.