Garbled characters in subtitles: fixing encoding problems
Last updated · 2 min read
Question marks, boxes or strings like é where accented letters should be all point to the same cause: the file was saved in one text encoding and read as another.
You open a subtitle file and the accented letters are wrong: "café" shows up as "caf�", "café" or "caf?". The text is not damaged. It was saved in one text encoding and is being read as another.
What a text encoding is
A file stores bytes, not letters. An encoding is the rule that maps bytes to letters. Plain English letters are the same in nearly every encoding, which is why English subtitles rarely have this problem. Accented and non-Latin letters are where encodings disagree.
Two encodings cause most subtitle trouble:
- UTF-8 — the modern standard, able to store every alphabet. Almost all current software writes UTF-8.
- Windows-1252 (often called ANSI or Latin-1) — an older Western European encoding. Many older subtitle files, especially from the DVD era, are saved in it.
UTF-16 also appears occasionally, usually from Windows Notepad's "Unicode" option.
Reading the symptoms
The kind of garbling tells you what went wrong:
- "é", "ä", "’" and similar pairs — a UTF-8 file is being read as Windows-1252. Each accented letter is two bytes in UTF-8, shown as two wrong characters.
- "�" (a diamond with a question mark) or "?" — a Windows-1252 file is being read as UTF-8. The single byte for "é" is not valid UTF-8, so the player shows a replacement character.
- Spaces between every letter, or nothing readable at all — the file is UTF-16 and the player expected UTF-8.
Fixing it
The fix is to read the file with the right encoding and save it again as UTF-8, which every modern player understands.
SubtitleDesk's tools do this automatically. When you drop a file, they check whether it is valid UTF-8; if it is not, they decode it as Windows-1252 and show an "encoding fallback" warning so you know. UTF-16 files with a byte-order mark are detected too. Every file the tools produce is written as UTF-8.
So the quickest repair is to drop the file on any tool — the Fix Subtitles tool is a good choice because it also cleans up other problems — and download the result. Check a few accented words in the output to confirm they look right.
When automatic detection is not enough
Windows-1252 covers Western European languages. Files in Greek, Cyrillic, Turkish, Central European or Asian languages may use other legacy encodings, such as Windows-1251 for Russian or Windows-1250 for Polish and Czech. If the result still looks wrong after the fallback, open the file in a text editor that lets you choose the encoding when opening (Notepad++, VS Code and most code editors do), pick the right one, and save as UTF-8.
Preventing it
When you create or edit subtitles, always save as UTF-8. If your editor offers "UTF-8 with BOM", either works; the byte-order mark helps some older Windows software recognise the encoding.