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

# Windows code page identifier (`windows_code_page`)

> **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.

Number of a character encoding in Windows, as in 1251 for Windows Cyrillic and 65001 for UTF-8. Identifiers run from 037 to 65001. File metadata, database collations and the chcp command use them. The name of the encoding is a separate record (character_encoding). Any number of three to five digits matches, so use the field name or context.

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

## Detection

Regular expression (Python `re`):

```
^\d{3,5}$
```

## Examples

- `1251` — windows-1251, ANSI Cyrillic
- `866` — cp866, OEM Russian
- `65001` — utf-8
- `037` — IBM037, IBM EBCDIC US-Canada
- `cp1251` (invalid example) — Encoding name

## Translations

- ru: Номер кодовой страницы Windows

## Sources

- doc: <https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

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