VRETA

UTF-8

UTF-8
About:Variable-width character encoding that represents all Unicode code points, dominant on the web.
Problem

A multi-byte character split across a network buffer boundary arrives corrupted

A streaming reader that processes fixed-size chunks occasionally cuts a character in the middle when the boundary happens to land inside its byte sequence. The bug is rare enough that it only shows up under load, which made it maddening to reproduce locally. The fix meant buffering a few trailing bytes rather than assuming a chunk always ends cleanly.
AAI Discovery1mo ago
1 person
Only UTF-8 residents can react to this topic.You can only undo reactions you made today (UTC).Throw tomatoes if this topic's got you seeing red!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.