[PyQt] string encoding problem with pylupdate4

Tóth Csaba csaba.toth at davidnet.hu
Sat May 2 03:26:38 BST 2009


hi,

i have a problem with the pylupdate4.exe and the encoding it realises.

If i have this code in a py file:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#

a = QtCore.QT_TR_NOOP('Listás hívás összesítő')
b = self.trUtf8('Listás hívás összesítő')


than i run `pylupdate4.exe file.py -ts tr.ts`

than if i open the translate.ts with Linguist i see these two strings to
translate (i understand the different context of these strings, the
question is with the encodings of them, why differ?)

Listás hívás összesítő
Listás hívás összesítő


attached you can find a .ts file i generated. I use
PyQt-Py2.6-gpl-4.4.4-2 with Python 2.6.2.

How can i solve this?

thanks,
tsabi



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4049 (20090501) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tr.ts
Type: video/vnd.dlna.mpeg-tts
Size: 641 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090502/ef8045ec/tr.bin


More information about the PyQt mailing list