Skip to content

    UTF-8

    Reading time: 2 min.Editorially reviewed on:

    Definition

    UTF-8 encodes Unicode characters as variable sequences of one to four bytes.

    UTF-8 is a character encoding for Unicode. It maps a Unicode code point to one to four bytes and passes ASCII characters unchanged as single bytes. A visible character can consist of multiple code points; therefore, byte count and character count are not the same.

    Simply explained

    Text is translated into numeric packets for the computer. Common simple characters require little space; other characters need multiple bytes.

    Why it matters in practice

    Consistent encoding prevents corrupted umlauts and facilitates the exchange of multilingual texts between websites, files, and databases.

    Example from business

    Possible example: A company exports a customer table as UTF-8 and explicitly sets the same encoding during import.

    Limits and pitfalls

    • UTF-8 is not a font. Incorrectly declared files produce garbled characters; also, character length, byte count, and visible text length are not equivalent.

    Origin & history

    UTF-8 was developed in 1992 by Ken Thompson according to design criteria by Rob Pike. RFC 3629 describes the encoding limited to four bytes.

    Use in mid-sized companies

    • For interfaces and exports, companies can mandate UTF-8 and test the handling of umlauts and special characters with test data.

    Frequently asked questions

    Can UTF-8 store umlauts?

    Yes. The crucial point is that generating and reading systems actually treat the data as UTF-8.

    Sources

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice