Function zalgo_codec::zalgo_encode
source · Expand description
Takes in an ASCII string and “compresses” it to zalgo text
using a reversible encoding scheme. The resulting string should
only take up a single character space horizontally when displayed
(though this can vary between platforms depending on how they deal with unicode).
It can be decompressed to recover the original string using zalgo_decode
.
Example
assert_eq!(zalgo_encode("Zalgo").unwrap(), "É̺͇͌͏");