Skip to content
UTF16Compatibility

EscapeUTF16

static std::string EscapeUTF16(const std::u16string str)

Kind of like U16_2_U8(), except that it will also escape characters that don't exist in UTF-8, like λ or π.