Skip to main content

path_message_text

Function path_message_text 

Source
pub fn path_message_text(bytes: &[u8]) -> String
Expand description

What: The readable text of path bytes for a message, with each invalid sequence replaced by U+FFFD. Why: Messages are text, and the exact bytes travel in the field next to them.

In TS you’d write (pseudocode):

bytes.toString('utf8')