liveBook · Manning

Character encoding

As explained in Grokking Relational Database Design

A character set is a defined mapping and storage scheme for representing characters and symbols in a database.

A character set is a set of rules for representing and storing letters, numbers, symbols, and characters from different languages in a database. Choosing one early helps keep stored data accurate and compatible. section 4.5

English, Chinese, and product data

English uses Latin letters, while Chinese uses different characters. A Latin-based character set such as Latin1 may suit limited language needs; UTF-8 supports internationalized and multilingual content. In a product database, this choice affects text such as names, manufacturers, descriptions, and photo URLs. section 4.5 section 4.5

Use these practical rules when designing a database:

  • Choose the character set when creating the database, before tables and columns accumulate data. section 4.5
  • Match the character set to the languages and symbols the database must store. section 4.5
  • Treat a later change as potentially difficult because some relational database systems may not allow it. section 4.5

How Grokking Relational Database Design covers it

How deep it goes
Defines representation and storage rules, compares language support, and explains timing without detailing conversion procedures.
Examples
Uses English, Chinese, Latin1, UTF-8, and product attributes such as names, descriptions, and photo URLs.
What you can do after
Operate/configure databases by selecting a character set early and matching it to required languages and symbols.
How it connects
Connects character sets with database creation, languages, scripts, multilingual content, and relational database systems.

Also explained in

Compare how 4 books explain character encoding →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Relational Database Design. The section links point to the parts of the book it draws on.