Re: [PyQt] Unicode characters in QTreeView

2009-09-09 Thread Doogster
> 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. Your advice worked. Returning QtCore.QVariant(var.decode("utf-8")) in the model for the display role instead of just QtCore.QVariant(var) did

Re: [PyQt] Unicode characters in QTreeView

2009-09-09 Thread Giovanni Bajo
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

[PyQt] Unicode characters in QTreeView

2009-09-09 Thread Doogster
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 prope