> 0xxxxxxx
> 110xxxxx 10mmmmmm
> 1110xxxx 10mmmmmm 10mmmmmm
> 11110xxx 10mmmmmm 10mmmmmm 10mmmmmm
>
> m = tab2[i]
> x = ~m
[...]
>
> Rune tab2[] =
> {
> 0x003f,
> 0x0fff,
> 0x3ffff,
> };
>
> makes snese?doesn't a 3-bit mask -> 7 not 3? i read tab2[] as the number of possibilties for byte 1, assuming not ascii. if i've got that wrong, explain it again. :-) - erik
