全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 UTF-8?

Definition 5.6 High School Computer Science · 第 5 章 — Text Encodings: From ASCII to UTF-8

UTF-8 encodes each code point in 11 to 44 bytes. Its bits are placed in the free positions x of the patterns of the figure below, from left to right. The first byte tells how many bytes follow; every following byte, a continuation byte, starts with the bits 10.

The four patterns of UTF-8, their fixed bits in red, and é encoded by hand: its 11 bits fill the x of the two-byte pattern.
The four patterns of UTF-8, their fixed bits in red, and é encoded by hand: its 1111 bits fill the x of the two-byte pattern.
在原文中阅读 →