encode_utf8

Function encode_utf8 

Source
pub fn encode_utf8(text: &str) -> Vec<u8> 
Expand description

Encodes the given str to UTF-8. This method of encoding text strings is first specified in PDF2.0 and reader support is still lacking (notably, Adobe Acrobat Reader doesn’t support it at the time of writing). Thus, using it is NOT RECOMMENDED.