liveBook · Manning

Character encoding

A scheme that maps textual characters to numeric code units or byte sequences for storage or transmission and maps encoded data back to characters.

How 4 Manning books explain it

The Well-Grounded Rubyist, Fourth Edition

An encoding is a scheme that maps sequences of bytes to textual characters and determines their representation.

How it is used
Explains how Ruby strings, source files, and file streams interpret bytes as characters.
How deep it goes
Defines byte-to-character mapping and demonstrates source settings, transcoding, forced labels, and stream-level differences without exploring encoding deeply.
Examples
Uses Ruby source comments, String#encoding, encode, encode!, force_encoding, getc, and getbyte as concrete examples.
What you can do after
Apply Ruby encoding methods to inspect, transcode, relabel, and read strings at character or byte boundaries.

Read how The Well-Grounded Rubyist, Fourth Edition explains character encoding →

Grokking Relational Database Design

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

How it is used
Guides early database design decisions for storing multilingual text accurately and compatibly.
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.

Read how Grokking Relational Database Design explains character encoding →

Clojure: The Essential Reference

A character encoding is a scheme that maps characters to byte sequences and decodes byte sequences into characters.

How it is used
Controls how Clojure readers decode files and writers encode output streams.
How deep it goes
Defines encoding selection and matching requirements but stops short of byte-level implementation details.
Examples
Demonstrates uppercasing dictionary lines while reading and appending UTF-16 output.
What you can do after
Operate/configure Clojure file processing with an explicitly selected character encoding.

Read how Clojure: The Essential Reference explains character encoding →

Julia as a Second Language

Character encoding is a scheme for representing textual characters as numeric code units in storage or transmission.

How it is used
Explains how Julia represents, inspects, and traverses multilingual text safely.
How deep it goes
Distinguishes code points from code units, demonstrates Julia operations, and examines part of nextind's string implementation.
Examples
Uses ASCII letters, Æ, an emoji, Unicode literals, and the string “Þrúðvangar” for conversion and iteration.
What you can do after
Evaluate character values and diagnose indexing assumptions in UTF-8 strings.

Read how Julia as a Second Language explains character encoding →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.