中文显示的问题

中文显示的问题



[Copy to clipboard] [ - ]
CODE:
filedialog = QtGui.QFileDialog(self)
        selected = QtCore.QString()
        path = QtGui.QFileDialog.getOpenFileName(filedialog,'对话框' ,  '.  ', '(*.*)', selected)

utf-8 编码

出来的   "对话框"这三个字为乱码

linux 环境 python2.5+qt4.3+PyQt4.2

请高手指教
python的中文问题,我已经不想再去搞了,太令人心痛(包括Linux的中文问题)。
幸好,我不需要用python写商业软件。
没用过python
不过这个管用么,utf8的。

[Copy to clipboard] [ - ]
CODE:
ailantian@vax:~$ python
Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
[GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print (u'\u751f385\u4e07\uff0c\u536040.5\uff05\uff0c\u7406\u5de5\u7c7b\u8003\u751f565\u4e07\u540d\uff0c\u536059.5\uff05\u3002');
生385万,占40.5%,理工类考生565万名,占59.5%。
>>>
ailantian@vax:~$ locale
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
ailantian@vax:~$

试试加上u呢
filedialog = QtGui.QFileDialog(self)
        selected = QtCore.QString()
        path = QtGui.QFileDialog.getOpenFileName(filedialog, u'对话框' ,  '.  ', '(*.*)', selected)