Home Download Buy Blog Forum Support

Working with hindi text

Working with hindi text

Postby CWIZO on Tue Aug 30, 2011 9:53 am

Hi,

I'm trying to paste some Hindi into my UTF-8 file but all I get are squares when I do. If I paste the same text into WordPad they display correctly. I've tried with v1 and v2 of sublime, and I'm on Windows XP.

The text is: खेल

Help please :)
CWIZO
 
Posts: 12
Joined: Tue Oct 27, 2009 8:45 am

Re: Working with hindi text

Postby jps on Wed Aug 31, 2011 8:58 am

Sublime Text 2 uses GDI for rendering the characters - getting a square is generally an indication that no suitable glyph is found for the code point. It may be that you're missing the fonts required. Does notepad (rather than WordPad) render the text correctly for you?

The characters are rendering for me on Windows 7, although with the caveat that combining characters (as the middle codepoint in the text is) aren't rendered as they really should be (they're treated as individual characters).
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Working with hindi text

Postby CWIZO on Wed Aug 31, 2011 9:04 am

Notepad also fails to render the characters. I thought that they would display correctly on the page, if I just save the file but they get displayed as squares there too (if I output the same text that comes from a DB then it displays correctly on the page).
I'll try on my windows 7 machine when I get back to the office if there is no other solution ...
CWIZO
 
Posts: 12
Joined: Tue Oct 27, 2009 8:45 am

Re: Working with hindi text

Postby CWIZO on Fri Sep 02, 2011 8:20 am

Looks like everything is OK on Windows 7 :)
CWIZO
 
Posts: 12
Joined: Tue Oct 27, 2009 8:45 am

Re: Working with hindi text

Postby asmodai on Fri Sep 02, 2011 1:31 pm

Windows 7 installs many different fonts by default. With Windows XP you need to install Indic and such fonts separately (at least when using an English version of Windows).

See http://www.mkhalsa.com/lit/indic.html for the steps you need to take.
asmodai
 
Posts: 73
Joined: Mon Mar 01, 2010 10:42 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 23 guests