SG
2011-07-02 06:54:17 UTC
When I run the current executable file for input 0xeeeeee (6 e's), I get
the following:
0xeeee : invalid Extra characters 0xee
Shouldn't it be just 0xeeeeee : invalid ?
Since there are 3 character bytes it corresponds to the 3rd type, and ee
is of form 1110xxxx. but the second byte fails for form 10xxxxxx, so it
is correct that it's invalid. However I don't understand why the last
one is extra character.
Did I misunderstand what determines the extra character for invalid
character?
Thank you
the following:
0xeeee : invalid Extra characters 0xee
Shouldn't it be just 0xeeeeee : invalid ?
Since there are 3 character bytes it corresponds to the 3rd type, and ee
is of form 1110xxxx. but the second byte fails for form 10xxxxxx, so it
is correct that it's invalid. However I don't understand why the last
one is extra character.
Did I misunderstand what determines the extra character for invalid
character?
Thank you