Skip to main content

encode_utf8

Function encode_utf8 

Source
pub fn encode_utf8(out: &mut Vec<u8>, cp: u32)
Expand description

Encode a Unicode code point as UTF-8 (up to the legacy 6-byte form, matching encodeUTF8), appending the bytes to out. Port of UTF8.cpp:encodeUTF8.