Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79236

Convert Qstring to string in windows

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 <cmferras@estudiantes.uci.cu>
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" <cmferras@estudiantes.uci.cu>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14940.1413530409.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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=qstringtext.text().toUtf8.data() 
and it return a python string correctly. 

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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Convert Qstring to string in windows "C@rlos" <cmferras@estudiantes.uci.cu> - 2014-10-16 11:21 -0400

csiph-web