Skip to content

Sinhala Subtitles Showing as Boxes or Broken Letters? How to Fix Unicode, Fonts and SRT Encoding

Boxes, question marks or scrambled Sinhala in subtitles usually mean a missing font or the wrong encoding. Diagnose which one and fix it.

Try it now: AI Subtitle Generator — timed subtitles from speech in 20 languages, processed in your browser.

Broken Sinhala in subtitles looks alarming, but it almost always comes from one of three causes. Work through them in order, because each has a different fix.

Symptom → cause → fix

What you seeLikely causeFix
Empty rectangles (▯) where letters should beThe player or editor has no font that contains Sinhala glyphsUse a font that includes Sinhala, or burn the captions in
Random-looking Latin letters and symbols instead of SinhalaText was typed with a legacy font (an "FM" style font) instead of UnicodeConvert the text to Unicode, then re-export
Question marks ? or �The file was saved or read in the wrong encodingRe-save as UTF-8
Letters appear but combine wrongly (vowel signs detached)A rendering engine without proper complex-script shapingUse a modern player/editor, or burn the captions in

Cause 1: A missing font

Unicode stores Sinhala as standard characters, but a screen can only draw them if a font contains the shapes. If none of the fonts available to the player cover Sinhala, you get boxes. Operating systems usually fall back to a Sinhala-capable font automatically, but video editors, TVs and some older players do not.

Fix: pick a font that covers Sinhala (the Noto Sans Sinhala family does) and set it explicitly. See fonts for non-Latin subtitles for how font fallback works across scripts.

Cause 2: Legacy "FM-style" fonts instead of Unicode

Before Unicode support was common, Sinhala was often typed using fonts that map Sinhala shapes onto ordinary Latin keys. The file does not contain Sinhala characters at all; it contains English-looking letters that only look Sinhala when that exact font is applied. Switch fonts, or open the file somewhere else, and the text becomes gibberish.

You can tell by opening the file in a plain text editor. If the Sinhala you expected looks like random Latin letters and symbols, the file is legacy text.

Fix: convert the text to Unicode with a converter, then paste the result into your subtitle. Check the output carefully, because conversion can misplace some characters.

The GenKit Lab generator writes Unicode Sinhala. Legacy FM-font output is not supported, so a file it produced will not have this problem; it is a problem with files that came from elsewhere.

Cause 3: Encoding

An SRT file is text, and text needs an encoding. YouTube's help page says SRT files must be plain UTF-8. If a file was saved in a legacy code page, Sinhala characters are lost, and they cannot be recovered by changing a font afterwards.

Fix:

  1. Open the SRT in a text editor that shows the encoding.
  2. Re-save as UTF-8.
  3. If the Sinhala is already replaced by ? characters, the information is gone. Regenerate or retype it.

More on safe editing is in opening and editing an SRT file.

The permanent workaround: burn the captions in

If the subtitle has to look right in a player you do not control, export an MP4 with the captions drawn into the video. The font is applied once, at export. See soft subtitles vs burned-in captions for the trade-offs; you lose the ability to switch captions off or edit them later.

Prevention checklist

  1. Generate or type Sinhala in Unicode only.
  2. Save as UTF-8, and avoid round-tripping the file through old software.
  3. Name a Sinhala-capable font wherever the editor lets you.
  4. Play the final file in the app where viewers will watch it.

To start from Unicode Sinhala captions, try the subtitle generator. Generating needs no account; editing and downloading need a free Google sign-in.

Sources

Last updated