Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news2.arglkargh.de!diablo1.news.osn.de!news.osn.de!diablo2.news.osn.de!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'string': 0.09; 'converted': 0.09; 'correct,': 0.09; 'subject:string': 0.09; 'way:': 0.09; 'sfxlen:2': 0.11; 'python': 0.11; 'windows': 0.15; 'received:cu': 0.16; 'subject:Convert': 0.16; 'subject:windows': 0.16; 'skip:p 40': 0.19; 'fine': 0.24; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'to:no real name:2**1': 0.29; 'received:10.0.0': 0.31; 'correctly.': 0.31; 'text': 0.33; 'to:addr:tutor': 0.33; 'linux': 0.33; 'header:Received:9': 0.33; 'convert': 0.35; 'but': 0.35; 'received:10.0': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:unknown': 0.61; 'received:200': 0.72; 'characters,': 0.84; 'escuela': 0.84; 'iii': 0.84; 'url:cu': 0.84; 'skip:\xc3 10': 0.91 X-Amavis-Modified: Mail body modified (using disclaimer) - xmail2.uci.cu X-Virus-Scanned: amavisd-new at xmail2.uci.cu Date: Thu, 16 Oct 2014 11:21:38 -0400 (CDT) From: "C@rlos" To: python-list@python.org, tutor@python.org In-Reply-To: <1549164247.13980291.1413472329833.JavaMail.zimbra@estudiantes.uci.cu> Subject: Convert Qstring to string in windows MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13984942_1270378530.1413472898088" X-Mailer: Zimbra 8.0.5_GA_5839 (ZimbraWebClient - FF29 (Linux)/8.0.5_GA_5839) Thread-Topic: Convert Qstring to string in windows Thread-Index: jwtXYOJ819YWZC/J2tEvOahorg0BdQ== X-Mailman-Approved-At: Fri, 17 Oct 2014 09:20:08 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413530409 news.xs4all.nl 2933 [2001:888:2000:d::a6]:38839 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79236 ------=_Part_13984942_1270378530.1413472898088 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I have been tryed to convert a Qstring text to string on python, in linux t= hat work fine but in windows when qstring contine =C3=A1,=C3=A9,=C3=AD,=C3= =B3,=C3=BA the converted text is not correct, contine extranger characters,= =20 this qstring text is an url from qdialogtext.=20 in linux i do for this way:=20 pythonstringtext=3Dqstringtext.text().toUtf8.data()=20 and it return a python string correctly.=20 i need some help plese...=20 .....C@rlos=20 III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver www.uci.cu=0A ------=_Part_13984942_1270378530.1413472898088 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

I have been tryed= to convert a Qstring text to string on python, in linux that work fine but= in windows when qstring contine =C3=A1,=C3=A9,=C3=AD,=C3=B3,=C3=BA the con= verted text is not correct, contine extranger characters,
thi= s qstring text is an url from qdialogtext.

in = linux i do for this way:
pythonstringtext=3Dqstringtext.text(= ).toUtf8.data()
and it return a python string correctly.
<= /div>

i need some help plese...

=
.....C@rlos


=

III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver www.uci.cu =0A
= ------=_Part_13984942_1270378530.1413472898088--