On Wed, 2009-09-09 at 00:50 -0700, Doogster wrote: > Japanese characters aren't displaying properly in my QTreeView. > > What should I do? > > Here's a screenshot (the bottom line should be in Japanese). > http://img.photobucket.com/albums/v298/dugan-c/unicode-error.jpg > > This is an MPD client and the rows are id3 tags. The line in question > does display properly in Amarok and (significantly, since it uses the > same python-mpd library I'm using) in Sonata. That means there's > nothing wrong with either the data or the library I'm using to read > it; the fault is with my GUI code.
... which you didn't show us :) What kind of datatype does python-mpd extract? Is it 8-bit str or unicode? If it's 8-bit str, you need to decode it properly before passing it to Qt. -- Giovanni Bajo Develer S.r.l. http://www.develer.com _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
