[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Qstring and encode
From:       Phil <phil_lor () bigpond ! com>
Date:       2017-09-25 20:37:52
Message-ID: a4427e46-4d9e-c656-7318-64a5835e6f88 () bigpond ! com
[Download RAW message or body]

On 25/09/17 21:42, Kyle Altendorf wrote:

Thank you Kyle and Detlev for your replies. This was another of those 
messages that I probably shouldn't have posted.

> Perhaps they are running different copies of Python?

Yes, and I'm silly old bugger for not realising it sooner.

>> TypeError: string argument without an encoding
> 
> This is bytes complaining about you not giving it an encoding.
> 
>    byte = bytes(mytext, encoding='ascii')
> 
>    https://docs.python.org/3/library/stdtypes.html#bytes

Thank you, I eventually discovered this after hours of searching.

-- 
Regards,
Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic