LPLuiz Paulo de Vasconcellos·Nov 14, 201570UTF-8 string lengthSo I came across the following code in stack overflow for calculating the length of an utf-8 string in C a few days ago: int my_strlen_utf8_c(char *s) { int i = 0, j = 0; while (s[i]) { if ((s[i] & 0xc0) != 0x80) j++Join discussion