2011/9/6 Richard L. Barnes <[email protected]>:
>> When a frame does not end on code point boundary, one needs to remember
>> at most 3 bytes to continue validation on next frame.
>
> If frames are valid utf-8, then you don't need to keep any state (on either 
> end of the connection).

But if I need to split a big UTF-8 message into several frames (due
some still unknown max frame size negotiation) I don't want to care
about splitting the UTF-8 message in valid "UTF-8 string". I just want
to care about counting *bytes*, as frame size is determined by payload
*byte* size rather than UTF-8 symbols.

-- 
Iñaki Baz Castillo
<[email protected]>
_______________________________________________
Gen-art mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/gen-art

Reply via email to