2 ms·
But character sets are not just sets of characters, they are assignments of abstract glyphs to integers, regardless of the storage representation of the integer
by sixbrx 13y ago
But character sets are not just sets of characters, they are assignments of abstract glyphs to integers, regardless of the storage representation of the integer.
- ygra 13y agoEep, funny how I can make the same mistake twice in ~five years. You are right, of course. Character sets therefore could be modelled as a partial function c : Character ↛ ℕ, while the encoding is a partial function e : ℕ ↛ seq Byte. Something like that. ASCII and Latin 1 are therefore both subsets of Unicode, even though only ASCII is a subset of UTF-8 while no comparable Unicode encoding exists for Latin 1 or any other encoding.