Computing · Data representation / Principles and exploration
Binary and character encoding experiment guide
Change bits to compare numbers, characters, and colors.
How does it work?
The same bits convey different information under different interpretations.
Key relationship
N = Σbᵢ2ⁱ · count = 2ⁿ
Try this investigation
- Change bits to compare numbers, characters, and colors.
- Run and record each of the three reference settings.
- Change one variable and compare with the reference records.
Interpreting your results
Is every UTF-8 character one byte?
It varies by character · The same bits convey different information under different interpretations.
Assumptions and limitations
Integers are unsigned 8-bit. UTF-8 encodes the selected Unicode character into actual bytes.