diff options
author | Felix von Leitner <felix-libowfat@fefe.de> | 2018-02-02 18:16:09 +0000 |
---|---|---|
committer | Felix von Leitner <felix-libowfat@fefe.de> | 2018-02-02 18:16:09 +0000 |
commit | 39a431f4d87c564cd6c01ab493971d14f5ebb3fc (patch) | |
tree | c1f1a396e6ba344f8f759791d39e89dfacfb47e9 /textcode.h | |
parent | 707f0cca3b0906240758c42ba3f49bb1836d4989 (diff) | |
download | libowfat-39a431f4d87c564cd6c01ab493971d14f5ebb3fc.tar.gz libowfat-39a431f4d87c564cd6c01ab493971d14f5ebb3fc.zip |
don't escape poop emoji (emit as utf8 instead)
if input is not valid utf8, encode each invalid byte as utf8 in output
Diffstat (limited to 'textcode.h')
-rw-r--r-- | textcode.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ size_t fmt_foldwhitespace(char* dest,const char* src,size_t len); size_t fmt_ldapescape(char* dest,const char* src,size_t len); size_t fmt_ldapescape2(char* dest,const char* src,size_t len,const char* escapeme); /* Encode JSON string from UTF-8; will backslash-escape the bare minimum. - * Will not verify that the input is valid UTF-8! + * Invalid UTF-8 in input will output as valid UTF-8 for each byte * Worst case: len*6 */ size_t fmt_jsonescape(char* dest,const char* src,size_t len); |