Preeti vs Unicode: Why Nepali Text Turns Into Gibberish
Why text copied from an old Nepali PDF looks like g]kfn, what Preeti and Unicode actually are, and how to get clean, searchable Nepali back.
By Kaamsajilo Editorial Team · Research and review, PinakiTech Pvt. Ltd., Kathmandu
We write each guide from official notices, Acts and portal screens, check every figure against its source, and update the guide when the rule changes. How we write guides
Published · Last updated · 4 min read
The symptom
You copy a paragraph from a notice, a syllabus or an old office letter, paste it into Word or a chat, and instead of नेपाल सरकार you get g]kfn ;/sf/. Search inside the PDF finds nothing. A phone shows the text as English letters and symbols. None of this means the file is damaged. It means the Nepali was typed in a legacy font, most often Preeti.
Legacy fonts and Unicode
A legacy font like Preeti, Kantipur or PCS Nepali was built before computers had a standard way to store Devanagari. It stores ordinary keyboard characters, the same codes as English letters, and simply draws them as Devanagari shapes. The letter g is stored, and the font paints न on screen. As long as that exact font is installed and selected, it looks right. The moment the text leaves the font, by copying, searching, or opening on a device without Preeti, you see the stored keyboard letters again.
Unicode stores the Devanagari letters themselves. न is saved as न, whatever font displays it. That is why Unicode text can be searched, read aloud by screen readers, typed on any phone and found by search engines, while Preeti text can't.
Reading the gibberish
Once you know the mapping, the gibberish is predictable. In g]kfn ;/sf/:
g→ न,]→ the े sign,k→ प,f→ the ा sign,n→ ल, giving नेपाल;→ स,/→ र,s→ क,f→ ा,/→ र, giving सरकार
A few more common words: k|zf;g is प्रशासन, lzIff is शिक्षा, and sf7df8f}+ is काठमाडौं. Converting is a matter of applying this mapping carefully, including the rules for where a vowel sign or a half-letter really belongs, which is what a converter does for you.
Three kinds of "broken" Nepali PDF
Not every unreadable Nepali PDF has the same problem, and each needs a different fix:
- Typed in Preeti or Kantipur. The PDF has real text, just in legacy codes. Copied text looks like
g]kfn. Fix: the Preeti PDF to Unicode tool, which converts only the runs set in legacy fonts and leaves English untouched. - Scanned. Each page is a photo; there is no text to copy at all. Fix: OCR, which reads the letters from the image. Our Nepali OCR tool does this in your browser.
- Unicode, but with a damaged text layer. Many PDFs saved from Word in fonts such as Kokila look perfect but copy out as "प्र शासन" or "सहसकिव", because the PDF stores the glyph order rather than the true letter order. Converting won't help here; OCR will. The Preeti converter detects this case and warns you.
Converting plain text, not a PDF
If you already have the Preeti text, for example pasted from an email or an old Word file, you don't need the PDF tool. Paste it into the Nepali Unicode Converter and it converts Preeti, Kantipur or PCS Nepali to Unicode, or back again when an office still asks for Preeti. The same tool lets you type Nepali directly, either with the traditional Preeti keyboard layout or with romanized typing.
Where conversion still needs a human check
A few things can't be decided by the mapping alone:
- Preeti
Mis sometimes the visarga (ः) and sometimes a plain colon, so check lines that contain either. - Some typists built क्र from visual pieces (
j|m) instead of Preeti's ownqm. That converts wrongly, for example फाठ्यव्रम instead of पाठ्यक्रम. - Two-column layouts such as the Nepal Gazette can come out in the wrong reading order.
- Decorative titles printed twice on top of each other can show doubled marks.
Read the converted text against the original before you rely on it, especially names, numbers and dates.
Stop creating new Preeti files
The easiest fix is not to need one. Type new documents in Unicode: most phones and computers include a Nepali or Devanagari keyboard, and romanized typing lets you write नेपाल by typing "nepal". If you learned Preeti by touch, the Nepali Unicode Converter's Preeti keyboard mode keeps the layout your fingers know while producing Unicode. Use a Unicode font such as Kalimati, Mangal or Noto Sans Devanagari, and the documents you send will open correctly on every phone and computer.
Tools for this guide
Was this guide helpful?