Subtitles Showing Question Marks or Gibberish? Fix SRT
EqualangIn brief
Diagnose whether garbled SRT subtitles come from a legacy encoding mismatch or missing font glyphs, and convert files to UTF-8 without corrupting text.
Keywords: subtitles showing question marks; vlc subtitles showing question marks; convert the srt file to utf 8 encoding; srt gibberish fix; subtitle encoding mismatch
When subtitles show up as question marks, scrambled accents, or empty boxes, you are looking at one of two completely separate problems. Strange symbols like ``, ???, é, or random characters mean a character encoding mismatch (Mojibake): your player is reading an older regional .srt file as UTF-8 (or vice versa). Uniform empty rectangles (□□□), on the other hand, mean missing font glyphs ("Tofu"): the file is already valid UTF-8, but your player's active subtitle font lacks characters for Chinese, Japanese, Korean, Arabic, or Thai.
Identifying which symptom is on your screen takes five seconds—and prevents you from changing the wrong setting or permanently overwriting your subtitle file.
Encoding Mismatch vs. Missing Font Glyphs: Spot the Difference
Older .srt files from subtitle archives were frequently saved in single-byte or regional legacy codepages rather than Unicode UTF-8. Because an .srt plain-text file carries no mandatory internal header declaring its encoding, media players have to guess—or default to UTF-8 or your operating system's local codepage.
Use what you see on screen to pinpoint the exact cause:
For instance, consider a French line containing accented letters and an inverted Spanish question mark:
14 00:01:12,400 --> 00:01:15,100 ¿Où est le café ?
If that file was saved in Windows-1252 and your player strictly expects UTF-8, the high bytes for ¿, ù, and é are invalid standalone UTF-8 sequences, so the player substitutes replacement characters:
14 00:01:12,400 --> 00:01:15,100 O est le caf ?
Conversely, if the .srt file is already properly encoded in UTF-8 (é = 0xC3 0xA9), but your player is configured to decode subtitles as Windows-1252, each byte is printed as its own Windows-1252 character:
14 00:01:12,400 --> 00:01:15,100 ¿Où est le café ?
Stop Before You Save: How People Permanently Ruin an SRT File
Before you open a garbled .srt file in a text editor and hit "Save as UTF-8," watch out for the single most common mistake in subtitle troubleshooting.
If you open an .srt file in an editor where the dialogue **already looks like , `???`, or `é` on screen**, and you immediately click **Save as UTF-8**, you permanently destroy the original text. The editor takes the broken replacement characters currently displayed in the window and writes their literal `UTF-8` bytes (`U+FFFD` for or U+003F for ?) to disk, overwriting the original regional bytes forever. Once that happens, no encoding converter can recover the missing letters.
To convert a file safely:
- First make a backup copy of your original
.srtfile. - Tell your editor to re-interpret (reopen) the raw bytes on disk using the original source encoding until every word looks completely normal.
- Only after the characters look right on screen should you save (convert) the file to
UTF-8.
Which Legacy Encoding Is My SRT File Using?
When you need to reopen an older .srt file, match the subtitle language to its standard legacy codepage:
Method 1: Convert an SRT File to UTF-8 Safely in VS Code
Visual Studio Code makes encoding repair transparent because it separates Reopen with Encoding (changing how existing bytes on disk are read) from Save with Encoding (converting and writing new bytes).
- Open your
.srtfile in VS Code. If the subtitles look broken (???, ``, or gibberish), do not edit or save the file yet. - Look at the bottom-right status bar and click the encoding indicator (it usually says
UTF-8). - Select Reopen with Encoding from the command drop-down at the top of the window.
- Pick the legacy encoding that matches the subtitle language from the table above (for example,
Western (Windows 1252)for French/Spanish,Cyrillic (Windows 1251)for Russian, orSimplified Chinese (GB18030)for Simplified Chinese). - Check the editor window. If the dialogue still looks scrambled, click the bottom-right encoding indicator again, choose Reopen with Encoding, and try the next candidate until every accent or character is clean and readable.
- Once the text looks completely normal on screen, click the bottom-right encoding name one more time.
- Select Save with Encoding -> UTF-8.
Your .srt file is now genuinely converted to UTF-8 and will load cleanly across desktop players, browsers, and mobile apps—whether you are watching a single track, setting up VLC dual subtitles, or preparing a clean source file before following our SRT subtitle translation guide.
Method 2: Convert SRT Files to UTF-8 via Terminal (iconv)
On macOS or Linux, you can convert legacy .srt files directly from the command line using iconv, which reads the source bytes with -f (from) and writes clean UTF-8 to a new file with -t (to) without touching your original file.
Convert a Western European (Windows-1252) subtitle file to UTF-8:
iconv -f WINDOWS-1252 -t UTF-8 old.srt > utf8.srt
Convert a Cyrillic (Windows-1251), Simplified Chinese (GB18030), or Japanese (Shift_JIS) file to UTF-8:
# Russian / Cyrillic iconv -f WINDOWS-1251 -t UTF-8 movie-ru.srt > movie-ru-utf8.srt # Simplified Chinese iconv -f GB18030 -t UTF-8 movie-zh.srt > movie-zh-utf8.srt # Japanese iconv -f SHIFT_JIS -t UTF-8 movie-ja.srt > movie-ja-utf8.srt
Always redirect output to a new filename (> utf8.srt) rather than redirecting back into the same file (> old.srt), which would truncate your source file before iconv finishes reading it.
How to Fix Empty Boxes (□□□) in VLC When Encoding Is Already UTF-8
If your subtitles appear as uniform empty rectangles (□□□), converting the .srt file will not change anything. Empty boxes mean VLC has already decoded the UTF-8 text properly, found the exact Unicode code points, and asked the currently selected font to draw them—only to find that the font has no glyphs for that script.
This frequently happens on smart TVs or fresh VLC installs where the default subtitle font only covers Latin characters, and you load a Chinese, Japanese, Korean, Thai, or Arabic .srt file.
To fix □□□ in VLC immediately:
- Open VLC and go to VLC > Preferences (on macOS) or Tools > Preferences (on Windows/Linux).
- Click the Subtitles / OSD tab.
- Locate the Font dropdown under Subtitle Effects.
- Change the font from a Latin-only font to a comprehensive Unicode or CJK-capable font installed on your system:
- Cross-platform / Linux:
Noto Sans CJKorArial Unicode MS - macOS:
PingFang SC - Windows:
Microsoft YaHei5.While you are in the Subtitles / OSD tab, set Default encoding toUniversal (UTF-8)so VLC never tries to decode modernUTF-8files as a legacy regional codepage.
- Cross-platform / Linux:
- Click Save, close the video completely, and reopen it (VLC caches the subtitle font renderer while a video is active).
Frequently Asked Questions
Why is my question mark or accented letter showing up as é or ¿?
In UTF-8, characters outside basic ASCII are stored using two to four bytes. For example, é is stored as the two-byte sequence 0xC3 0xA9, and the inverted question mark ¿ is stored as 0xC2 0xBF. When a media player or text editor is set to a single-byte legacy encoding like Windows-1252 instead of UTF-8, it treats each byte as a separate character—turning 0xC3 0xA9 into é and 0xC2 0xBF into ¿. Switching the player's subtitle encoding to UTF-8 fixes it immediately.
Can I recover an SRT file that was already saved with literal ??? or `` characters?
No. Once an editor saves a file while `` (U+FFFD) or ? (U+003F) is displayed on screen, every corrupted character is replaced by the identical byte sequence for that placeholder. Because dozens of different letters collapse into the exact same replacement symbol, the original bytes are gone. You will need to re-download the original .srt file and use Reopen with Encoding before saving as UTF-8.
Should I save my SRT file as UTF-8 or UTF-8 with BOM?
Standard UTF-8 (without a Byte Order Mark) is the universal recommendation per the Unicode specification and works across modern desktop players, web <track> elements, and subtitle tools. However, if an older television USB player or legacy Windows program still defaults to a local codepage when opening a standard UTF-8 file, saving as UTF-8 with BOM prepends three identification bytes (0xEF 0xBB 0xBF) that force legacy software to recognize the file as UTF-8.