diff options
Diffstat (limited to 'src/utf8.hh')
-rw-r--r-- | src/utf8.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utf8.hh b/src/utf8.hh index cdf6b50a..eaf82b6f 100644 --- a/src/utf8.hh +++ b/src/utf8.hh @@ -8,6 +8,13 @@ extern "C" { #include "d_size.h" +/* + * Unicode replacement character U+FFFD + * "used to replace an incoming character whose value is unknown or otherwise + * unrepresentable in Unicode" + */ +const char utf8_replacement_char[] = "\xEF\xBF\xBD"; + uint_t a_Utf8_end_of_char(const char *str, uint_t i); uint_t a_Utf8_decode(const char*, const char* end, int* len); int a_Utf8_encode(unsigned int ucs, char *buf); |