[PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

Phil Thompson phil at riverbankcomputing.co.uk
Thu Jan 26 08:47:44 GMT 2006


On Thursday 26 January 2006 12:53 am, Ismail Donmez wrote:
> Hi,
>
> I am using QDate.toString(QtCore.Qt.TextDate) in my application and Turkish
> characters are malformed unless I do
> unicode(QDate.toString(QtCore.Qt.TextDate) , I checked the Qt4 apidocs and
> it says :
>
> QString toString ( const QString & format ) const
> QString toString ( Qt::DateFormat format = Qt::TextDate ) const
>
> so it should already be supporting UTF-8, is there a problem with PyQt4 or
> am I missing something here?

There's nothing special about these methods as far as PyQt is concerned - no 
handwritten code or anything. Can you repeat the problem with an equivalent 
C++ program?

Phil




More information about the PyQt mailing list