Subtitle

How to Fix Garbled SRT Subtitles (GBK, Big5, Shift-JIS, Windows-1252 to UTF-8)

Decode the original subtitle bytes, compare regional encodings on diagnostic lines, and verify a UTF-8 export against a downloadable SRT example.

Find a subtitle line containing a name you recognize. If the timestamps and the English letters look fine but the accent in “Café” is broken, save the original file before opening it in another editor. Many encodings use the same byte values for digits, colons and the arrow in a timing line. A player can therefore start the right cue at exactly the right moment while drawing nonsense for the dialogue. Retiming that cue would change something that already works.

Reproduce a failure with one known word

Download the Windows-1252 SRT source and the expected UTF-8 SRT. Both files should show one cue, starting at one second and ending at three seconds. The visible word is the same. The original encodes its final letter in one byte, while the expected copy uses two bytes for that letter. Use the actual downloads for this exercise. Copying visible text from a web page puts already-decoded characters on the clipboard and loses the distinction.

Windows-1252 input   43 61 66 E9      Café
UTF-8 output         43 61 66 C3 A9   Café
Timing in both       00:00:01,000 --> 00:00:03,000
Wrong interpretation of C3 A9 as Windows-1252: é
A Windows-1252 E9 byte maps to é and then to UTF-8 bytes C3 A9.
Decode E9 with Windows-1252 before encoding the resulting character as UTF-8. A replacement character in a saved copy may mean the original byte is gone.

Open the original in the on-device subtitle encoding tool. Choose Windows-1252 as the source and inspect the dialogue before exporting UTF-8. Compare the export with the expected sample in a reader explicitly set to UTF-8. A lone E9 byte at the end of the word is an incomplete multibyte sequence for a UTF-8 decoder. A replacement character in that preview tells you the chosen interpretation failed. It does not prove that any bytes in the selected file were destroyed.

Choose evidence that distinguishes the candidates

Source clueCandidate to tryHigh-information check
Western European desktop exportWindows-1252Accented names, curly quotes and a euro sign
Legacy mainland Chinese exportGBKA complete phrase containing known simplified characters
Traditional Chinese subtitle archiveBig5Several familiar names in different scenes
Older Japanese authoring applicationShift-JISBoth kana and kanji in a recognizable sentence

Language is evidence about likely choices, not a declaration of encoding. A Japanese subtitle can be UTF-8 and a traditional Chinese translation can be stored by a modern editor in UTF-16. Check for a byte-order mark and consider how the producing application was configured. Treat an automatic suggestion as a starting point. If several options produce readable punctuation, compare a name with unusual characters and a later sentence. A title card in English is a poor diagnostic sample for any of these cases.

Legacy East Asian encodings map sequences of bytes to characters. A different decoder may accept a sequence and display real but unintended characters. Looking only for black diamonds or question marks misses this kind of corruption. Ask a reader of the language to verify a complete sentence or compare with a trusted transcript. If the first half of an episode is correct and the second is unreadable under the same setting, inspect the point where two releases may have been joined.

Separate an incorrect display from an incorrect save

A wrong display is cheap to fix when you still have the original bytes. Close the preview, reopen the same source and choose another decoding. A wrong save adds a second transformation. For example, the UTF-8 bytes of an accented letter may first have been read as two Windows-1252 characters, then saved as perfectly valid UTF-8 representing those two wrong characters. A strict UTF-8 validity test on that saved copy can pass even though a human immediately sees the wrong name.

Check the earliest attachment, export or archive you can obtain. Compare sizes and one short byte sequence near the first bad word. If the bytes in the earlier copy match your expected source encoding, convert that copy directly. Trying several “save as” operations on the latest copy makes the history harder to reconstruct. Keep candidate outputs in distinct files and label them with the chosen source encoding. This also prevents an editor from silently replacing the only recoverable original when it closes.

Verify a whole subtitle, then group a batch

Read a line near the beginning, a name around the middle and the final credit. Check whether the number of cues and the first and last times agree with your source. Load the exported file in the target player with the actual video. If the letters are correct in the local preview but appear as identical empty boxes on one playback device, try a font with coverage for that script. A missing glyph can resemble bad decoding while the underlying text is entirely intact.

For a season of episodes, group files by source and verified encoding before using the on-device batch subtitle tool. Its encoding, output format and optional timing offset apply to the whole group. Use zero offset when you are testing only encoding. Start with two episodes, download the archive, and inspect the individual outputs and batch report. One contributor may have changed editors halfway through a season. Split that episode into a separate run if the expected character sequence changes.

A quick cross-device test is to send the known UTF-8 sample along with one short corrected cue. Select each file explicitly instead of relying on automatic subtitle discovery by basename. If the sample also breaks, inspect the player's subtitle character-set preference before changing the repaired file. If only the repaired cue fails, compare the bytes in its affected word with the same word typed in a trusted UTF-8 editor.

Limitations of encoding repair

If a previous export literally wrote three 3F bytes for “???”, every candidate that treats those bytes as ordinary ASCII question marks starts with the same evidence. No remaining information distinguishes the three lost letters from any other three letters. A saved Unicode replacement character can mark a similar loss. Recover the dialogue from an earlier file, a second subtitle track or a transcript. Distinguish these cases from a replacement character generated only on screen when previewing an intact original with the wrong decoder.

Changing the encoding cannot translate dialogue, restore omitted cues or synchronize captions with a different video cut. Retain a verified UTF-8 master before making those edits. If a recipient reports another failure, ask for the exact player, one affected timestamp and the downloaded file they actually opened. Comparing that cue and its bytes with the master separates a stale attachment, a player forced to a legacy encoding, and a genuine fault in the export without guessing from a screenshot.

References & further reading

Tools for this guide