---
id: "character_encoding"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["texts", "software"]
langs: ["common"]
quality: 55
url: "https://registry.apicrafter.io/datatype/character_encoding"
---

# Character encoding (charset) (`character_encoding`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Name of the character encoding of a text, as in the charset parameter of a MIME type, an HTML meta tag, an XML declaration or a file's metadata. The IANA Character Sets registry lists the names and aliases for use on the Internet: up to 40 printable US-ASCII characters, compared without regard to case, such as UTF-8, ISO-8859-1, windows-1251 and KOI8-R. Software also writes unregistered spellings (utf8, cp1251). Field names are charset, encoding and character_set.

- Personal data (PII): no
- Categories: Texts and  articles (texts), Software development (software)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Examples

- `UTF-8` — Unicode, preferred MIME name in the IANA registry
- `windows-1251` — Windows Cyrillic code page
- `KOI8-R` — Russian KOI8 encoding
- `Shift_JIS` — Japanese encoding

## Translations

- ru: Кодировка символов: Название кодировки текста, например UTF-8, windows-1251 или KOI8-R, по реестру Character Sets IANA.

## Sources

- doc: <https://www.iana.org/assignments/character-sets/character-sets.xhtml>
- wikipedia: <https://en.wikipedia.org/wiki/Character_encoding>

## Quality

Score 55/100. Missing: regexp, negative example, mapping (Wikidata, Schema.org, ...), detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/character_encoding.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/texts/character_encoding.yaml>
