Re: [Tutor] Convert Qstring to string in windows

2014-10-17 Thread eryksun
On Thu, Oct 16, 2014 at 10:21 AM, C@rlos wrote: > in linux i do for this way: > pythonstringtext=qstringtext.text().toUtf8.data() > and it return a python string correctly. pythonstringtext is a byte string that has to be decoded as UTF-8. Here's the 'mojibake' result when it gets decoded as UTF-

Convert Qstring to string in windows

2014-10-17 Thread C@rlos
I have been tryed to convert a Qstring text to string on python, in linux that work fine but in windows when qstring contine á,é,í,ó,ú the converted text is not correct, contine extranger characters, this qstring text is an url from qdialogtext. in linux i do for this way: pythonstringtext=q

Re: [Tutor] Convert Qstring to string in windows

2014-10-16 Thread Albert-Jan Roskam
- On Thu, Oct 16, 2014 10:59 PM CEST Alan Gauld wrote: >On 16/10/14 19:14, Danny Yoo wrote: > >> need more information. But I think you may get better help on a >> Qt-specific mailing list; I suspect very few of us here have Qt >> experience. > >There are at least 2 P

Re: [Tutor] Convert Qstring to string in windows

2014-10-16 Thread Alan Gauld
On 16/10/14 19:14, Danny Yoo wrote: need more information. But I think you may get better help on a Qt-specific mailing list; I suspect very few of us here have Qt experience. There are at least 2 Python Qt mailing lists and also two for Side which is Nokia's public domain fork of Qt. That's

Re: [Tutor] Convert Qstring to string in windows

2014-10-16 Thread Danny Yoo
On Thu, Oct 16, 2014 at 8:21 AM, C@rlos wrote: > > I have been tryed to convert a Qstring text to string on python, in linux > that work fine but in windows when qstring contine á,é,í,ó,ú the converted > text is not correct, contine extranger characters, > this qstring text is an url from qdialogt