Back to Character Encoding

ISO-8859-13 ISO-8859-13 (Latin-7, Baltic Rim) ISO-8859

The refined Baltic encoding that effectively replaced ISO-8859-4, covering Estonian, Latvian, and Lithuanian more completely.

What it is

ISO-8859-13, also called Latin-7, is the encoding that effectively became the practical standard for Baltic Rim languages (Estonian, Latvian, Lithuanian), refining and largely replacing ISO-8859-4 in real-world use. It corrected some character coverage gaps identified in the earlier Baltic-region attempt.

Byte structure

Byte range Content
0x00–0x7F Identical to ASCII
0xA0–0xFF Baltic accented letters, including refinements over Latin-4's original character assignments

Why your text is garbled (symptom → cause)

Symptom Likely cause
Baltic accented letters display incorrectly Text is Latin-7 but read as Latin-4, Latin-1, or UTF-8 — differing upper-range assignments
Older Baltic-region data behaves differently than newer data from the same source The older data may genuinely be Latin-4, while newer data (post-Latin-7 adoption) uses Latin-7 instead — both may coexist in older organizational data without clear labeling

Compatibility & gotchas

  • The more commonly adopted of the two Baltic-region ISO-8859 variants in real-world practice — if choosing between Latin-4 and Latin-7 assumptions for legacy Baltic data, Latin-7 is the more likely candidate for anything reasonably recent (pre-Unicode) rather than very old data.
  • Rarely encountered in modern software, superseded by UTF-8 like the rest of the ISO-8859 family.

Fixing it

  • Command-line conversion: iconv -f ISO-8859-13 -t UTF-8 input.txt -o output.txt

Comparison

Encoding Key difference from ISO-8859-13
ISO-8859-4 The earlier, less refined Baltic-region attempt this encoding effectively replaced
UTF-8 Full Unicode coverage, the modern default

FAQ

Why are there two ISO-8859 encodings for Baltic languages?

ISO-8859-4 was the original attempt, but character coverage gaps led to ISO-8859-13 being developed as a refinement that became the more widely adopted choice in practice for the same language region.

Fun fact

ISO-8859-13's refinements over Latin-4 illustrate a broader pattern across the ISO-8859 family's later revisions — several later-numbered variants (10, 13, 14, 15, 16) exist specifically to correct or extend gaps found in earlier ones, rather than covering entirely new regions.