[pygtk] UTF-8 font not getting displayed in pygtk

Danny Milosavljevic danny.milo at gmx.net
Sat Feb 18 22:50:12 WST 2006


Hi,

please keep it on-list. gtk is a huge project and I only know some parts
of it very well. Others know other parts well. So it's best to
collaborate.

Am Freitag, den 17.02.2006, 21:30 -0800 schrieb Anand Kulkarni:
> Hi Danny,
> 
> We are using GTK 2.2. When I manually add the UTF-8
> based Marathi text into TextView, it displays it
> properly. Only through program it is not working.

Okay. When you use buffer.set_text("some-marathi-text-string-here"),
does it happen too?

> 
> So, please tell us the solution of this problem.

Well, first, we have to find out exactly when it happens by experiment
that is influenced by as few other parts as possible. Hence, please try
if it happens when you call buffer.set_text("some-marathi-text-here") as
well, thereby eliminating the possibility of the SAX XML parser
malfunctioning.

> 
> regards,
> 
> Anand

cheers,
  Danny

> 
> 
> --- Danny Milosavljevic <danny.milo at gmx.net> wrote:
> 
> > Hi,
> > 
> > Am Mittwoch, den 15.02.2006, 21:45 -0800 schrieb
> > Anand Kulkarni:
> > > Hi,
> > > 
> > > We are developing a free software for the school
> > > children. The software is developed using pygtk
> > (2.0.0
> > > or higher) and glade-python (2.0.0 or higher).
> > > 
> > > The user interface is in Marathi language. We are
> > > using a widget called GtkTextView to display
> > marathi
> > > text. 
> > > 
> > > The marathi text is coming from xml file. We have
> > > written sax parser to parse it and display this
> > UTF-8
> > > based marathi text into GtkTextView.
> > > 
> > > It is showing marathi text inside GtkTextView if
> > we
> > > run the software on Linux platform. But on windows
> > > 2000 / XP, it is showing garbage text.
> > 
> > What gtk+ version
> > 
> > > 
> > > I heard that all Gtk widgets support UTF format. 
> > 
> > Yes, UTF-8.
> > 
> > > Then
> > > why it is not working on Windows platform?
> > 
> > Hm...
> > 
> > Does that also happen when you manually add some
> > text into the textview
> > (or set a constant text from within the source code,
> > just for testing) ?
> > 
> > Does that only happen for gtk textview or for all
> > gtk widgets ?
> > 
> > > 
> > > The matter is very urgent. Can somebody please
> > guide
> > > us in this matter?
> > > 
> > > Waiting for the early reply.
> > > 
> > > regards,
> > > 
> > > Anand
> > 
> > cheers,
> >   Danny
> > 
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 



More information about the pygtk mailing list