4. Character Encoding

Explore how computers represent letters, numbers, and symbols.

Encoding Demo Files

Open Files and Inspect Encoding

Right-click each link and choose Inspect. The link element includes a data attribute for the encoding label. Then open the file and check Network response headers for Content-Type charset and X-Text-Encoding.

Interactive Lab

Encoding Preview vs Source Code

Edit source code and change the meta charset. The preview file uses the same encoding declared in your editor.

1

ASCII

English + symbols only.

2

Big5

Traditional Chinese + English.

3

GB Code

Simplified Chinese + English.

4

Unicode

Any language.

File Preview

(preview will appear here)

Source Code Editor