chiark / gitweb /
core: do not print invalid utf-8 in error messages
[elogind.git] / src / shared / utf8.h
index f56077438aa6970d7d6950b5452c5d9db97a85ff..c0eb73a21d32ea5a483fea51fa39ff6de96ddc4d 100644 (file)
 
 #include "macro.h"
 
+#define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
+
 const char *utf8_is_valid(const char *s) _pure_;
 char *ascii_is_valid(const char *s) _pure_;
+char *utf8_escape_invalid(const char *s);
 
 bool utf8_is_printable(const char* str, size_t length) _pure_;