utf-8 is now limited to 4 bytes so imo it should be left as is. Rob
----- Original Message ----- From: Marcus Boerger > that's missing a few lines: > > } else if ((c & 0xfc) == 0xf8) { > if ((s[i++] & 0xc0) != 0x80 || (s[i++] & 0xc0) != 0x80 || (s[i++] & 0xc0) != 0x80 || (s[i++] & 0xc0) != 0x80) { > return 0; > } > } else if ((c & 0xfe) == 0xfc) { > if ((s[i++] & 0xc0) != 0x80 || (s[i++] & 0xc0) != 0x80 || (s[i++] & 0xc0) != 0x80 || (s[i++] & 0xc0) != 0x80 || (s[i++] & 0xc0) != 0x80) { > return 0; > } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php