[PyQt] PyQt cannot trasform QString into str when reading emoji symbol from QClipboard

Phil Thompson phil at riverbankcomputing.com
Thu Jan 22 17:40:44 GMT 2015


On 22/01/2015 5:30 pm, Pavel Roskin wrote:
> That's a big mess. Surrogates should not be in unicode strings. It's
> better to figure out how they got there. I guess it's something
> specific to your Python or PyQt. I tried
> QApplication.clipboard().text() with that symbol and it returns a
> valid unicode character for me (Ubuntu 14.10, Python 3.4, PyQt
> 4.11.2).

I'm not clear what the correct behaviour is here. What do you get when 
you print() the valid unicode character?

Thanks,
Phil


More information about the PyQt mailing list