Home / Computing / Binary and character encoding

Binary and character encoding

Change bits to compare numbers, characters, and colors.

    CS04 · Binary and character encoding0.00 s · Ready

    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

    1. Change bits to compare numbers, characters, and colors.
    2. Run and record each of the three reference settings.
    3. 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.