Skip to content

    Character encoding

    Reading time: 2 min.Editorially reviewed on:

    Definition

    A character encoding defines how text characters are stored as bytes and then read back as text.

    A character encoding assigns specific byte sequences to characters or code points. The writing and reading systems must use the same assignment. Encoding is distinct from the font: it concerns the stored data, not the drawn shape of the letters.

    Simply explained

    The computer stores numbers instead of letters. Both sides need the same translation rule so that these numbers can be converted back into the correct text.

    Why it matters in practice

    Different assumptions about encoding can corrupt names, umlauts, and other characters when exchanging between files and applications.

    Example from business

    Possible example: A table import displays ä incorrectly; the team checks the encoding used during export and selects the same setting during import.

    Limits and pitfalls

    • Simply renaming the file does not change the encoding. Data that has already been read incorrectly and saved again cannot always be reliably repaired without the original.

    Origin & history

    Different character sets and encodings caused exchange problems; Unicode and its associated encodings provide a common foundation for many writing systems.

    Use in mid-sized companies

    • Businesses can document encodings for exports and interfaces and send test data with umlauts and other required characters through the entire process.

    Frequently asked questions

    Is Unicode the same as UTF-8?

    No. Unicode defines, among other things, code points; UTF-8 is an encoding that represents these as byte sequences.

    Sources

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice