diff --git a/supervisor/shared/translate.c b/supervisor/shared/translate.c index 187d5ff8a5..6218ff461b 100644 --- a/supervisor/shared/translate.c +++ b/supervisor/shared/translate.c @@ -51,8 +51,8 @@ STATIC int put_utf8(char *buf, int u) { *buf = 0b10000000 | (u & 0b00111111); return 2; } else { // u <= 0xffff) - *buf++ = 0b11000000 | (u >> 12); - *buf = 0b10000000 | ((u >> 6) & 0b00111111); + *buf++ = 0b11100000 | (u >> 12); + *buf++ = 0b10000000 | ((u >> 6) & 0b00111111); *buf = 0b10000000 | (u & 0b00111111); return 3; }