Under the Hood
Loading visualizer…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Under the Hood
Loading visualizer…
Code points, variable-length encoding, surrogate pairs, grapheme clusters — and why string length lies
There is no way to look at bytes and know their encoding — it is metadata that travels separately, in a Content-Type header, an XML declaration, or an assumption. Get it wrong and you get mojibake. This is why "just store text" was never simple, and why UTF-8 everywhere was such a relief.
A file, a socket, a database column — none of them hold text. They hold bytes. Text only appears when something decides how to interpret those bytes, and that decision lives outside the bytes themselves.
The layers
Active Recall
What makes UTF-8 "self-synchronizing"?