1 Start with what you actually see #
"Gibberish" covers several different problems. The fix depends on what the broken text looks like, so start by matching your symptom:
| What you see | Most likely cause | Jump to |
|---|---|---|
Ordinary Latin letters: fgUnh, Avgvi | Legacy font without the font installed | Cause 1 |
| Empty boxes ▯▯▯ or "tofu" | No font for that script | Cause 2 |
| Question marks ??? | Text saved in an encoding that cannot hold Indian scripts | Cause 3 |
Strings like हि | UTF-8 read as the wrong encoding | Cause 4 |
| Letters in the right script but in the wrong order, dotted circles ◌ | Broken shaping or damaged text | Cause 5 |
| Spaces between every letter after copying from a PDF | PDF text extraction | Cause 6 |
| Correct in one app, wrong after pasting into another | Formatting or font lost on paste | Cause 7 |
2 Cause 1: The text is in a legacy font #
Fonts such as Kruti Dev, Chanakya, Bijoy, Preeti and Bamini store Indian letters as Latin characters and rely on the font to draw them correctly. On a computer without that font, or anywhere fonts are ignored (email, WhatsApp, search engines, websites), you see the Latin characters.
Fix: convert the text to Unicode once, and it will display everywhere. Use the converter for your font; if you are not sure which font it is, see how to identify a document's font. Installing the legacy font on your own computer only hides the problem for you; everyone else still sees gibberish.
3 Cause 2: No font for the script #
Empty boxes mean the text is correct Unicode, but the device has no font that contains those letters. This happens on older systems, minimal Linux installations and some e-readers.
Fix: install a free Noto font for the script (for example Noto Sans Devanagari, Noto Sans Bengali, Noto Sans Tamil). On a website, set a web font in your CSS so visitors do not depend on their own fonts.
4 Cause 3: Saved in an encoding that cannot hold the script #
Question marks appear when Unicode text is saved in an older encoding, such as "ANSI" in Windows Notepad, a database column set to Latin-1, or a form that sends text as Windows-1252. The letters are replaced by ? during saving and cannot be recovered from that file.
Fix: save text files as UTF-8. In Notepad choose Save As → Encoding: UTF-8. For MySQL databases, use the utf8mb4 character set. Go back to the original source for the lost text.
5 Cause 4: UTF-8 read as the wrong encoding (mojibake) #
Strings like हिनà¥à¤¦à¥€ are correct UTF-8 bytes displayed as if they were Western European text. The data is fine; the program reading it guessed wrong. The classic example is opening a CSV export in Excel by double-clicking it.
Fix in Excel: instead of double-clicking, use Data → From Text/CSV and set File Origin to 65001: Unicode (UTF-8). When saving from Excel, choose CSV UTF-8 (Comma delimited), not plain CSV. On websites, make sure the page declares <meta charset="utf-8"> and the server sends a UTF-8 content type.
6 Cause 5: Letters in the wrong order or dotted circles #
Indian scripts need "shaping": the software must reorder vowel signs and build conjuncts. If a program does not support this, or if a vowel sign has been separated from its consonant (for example by a stray space or a deleted letter), you see a dotted circle ◌ or a matra in the wrong place.
Fix: update the program or use another one (all current browsers, Word, LibreOffice and Google Docs shape correctly). If only a few words are affected, the text itself is damaged: look for a space or line break inside the word and remove it. This also happens after a poor legacy-font conversion; proofread converted text for ◌.
7 Cause 6: Copying from a PDF #
PDFs store glyphs and positions, not always clean text. Copying Hindi from a PDF can give letters separated by spaces, matras in the wrong order, or legacy-font characters if the PDF was made from a Kruti Dev file. Scanned PDFs contain no text at all, only images.
Fix: ask for the original Word or text file if possible. If the copied text is legacy-font characters, convert it. If it is a scan, use OCR software with support for your language, then proofread carefully.
8 Cause 7: The font was lost when pasting #
Text that looks fine in one program can break when pasted into another because the paste kept the characters but dropped the font. With Unicode text this is harmless (another font takes over). With legacy-font text it turns readable Hindi into Latin characters, because the legacy font was the only thing making it look right.
Fix: if pasting reveals Latin characters, the source is a legacy font: convert it to Unicode first, then paste. See our step-by-step guide to converting a Kruti Dev Word document.
9 Preventing the problem in the first place #
- Type new documents in Unicode using a system keyboard (see how to add an Indian-language keyboard) or our online keyboards.
- Save and export everything as UTF-8.
- Keep a Unicode master copy even when a printer needs a legacy-font version.
- When you receive a legacy file, convert it once and share the Unicode version.
