Re: [Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

2013-08-13 Thread Thiago Macieira
On quarta-feira, 14 de agosto de 2013 10:54:53, Mandeep Sandhu wrote: > The docs of QUrl::fromEncoded() (Qt 4.8) state : "input is assumed to be in > encoded form, containing only ASCII characters". Right. > Why does it assumes the input to be only the path? Is the caller expected > to explicitly

Re: [Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

2013-08-13 Thread Mandeep Sandhu
Hi Thiago, On Tue, Aug 13, 2013 at 11:20 PM, Thiago Macieira wrote: > On quarta-feira, 14 de agosto de 2013 00:35:47, Richard Turner wrote: > > OK. Now the problem is, when I use downloadUrl1(result from fromEncoded) > > to make a QNetworkRequest (HTTP GET), I always detect an error: Protocol >

Re: [Interest] Strange question on Stackoverflow.... QApplication in QThread

2013-08-13 Thread Jonathan Greig
There were at least 3 movies. That is hilarious though. - Swyped from my droid. On Aug 13, 2013 11:34 PM, "Joseph W Joshua" wrote: > [1] "There can be only one!". You remember the movies, don't you? > -- I remember the only one. ___ Interest mailin

Re: [Interest] Strange question on Stackoverflow.... QApplication in QThread

2013-08-13 Thread Thiago Macieira
On terça-feira, 13 de agosto de 2013 23:31:29, Guido Seifert wrote: > What if there is more than one of such a library? Somehow this gives me a > headache. It will fail with an assertion from QCoreApplication saying that it is a highlander[1]. [1] "There can be only one!". You remember the movi

Re: [Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

2013-08-13 Thread Thiago Macieira
On quarta-feira, 14 de agosto de 2013 05:30:44, Richard Turner wrote: > Just one more question: could you elaborate on the idea that calling the > QUrl constructor taking a QString is a big no-no in Qt 4 code, but not > in Qt 5? The problem is that the QUrl constructor in Qt 4 takes a fully-deco

Re: [Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

2013-08-13 Thread Thiago Macieira
On quarta-feira, 14 de agosto de 2013 00:35:47, Richard Turner wrote: > OK. Now the problem is, when I use downloadUrl1(result from fromEncoded) > to make a QNetworkRequest (HTTP GET), I always detect an error: Protocol > "" is unknown. > When I switch to use downloadUrl2, all is good. That was ex

Re: [Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

2013-08-13 Thread Thiago Macieira
On terça-feira, 13 de agosto de 2013 18:44:41, Richard Turner wrote: > QUrl downloadUrl1 = QUrl::fromEncoded(str.toUtf8()); > QUrl downloadUrl2 = QUrl::fromPercentEncoding(str.toUtf8()); Please note QUrl::fromEncoded returns a QUrl. QUrl::fromPercentEncoding returns a QString. Tha

Re: [Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

2013-08-13 Thread Richard Turner
On 2013/8/13 20:11, Mandeep Sandhu wrote: On Tue, Aug 13, 2013 at 4:14 PM, Richard Turner > wrote: |Hi, | QString str = "http%3A%2F%2F192.168.1.1%3A80%2Fservlet%2Fcom.mcdonalds.report.view.excel.ExcelReportServlet%3Ffile%3D4162%26columns%3D0%26srcType%3D

Re: [Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

2013-08-13 Thread Mandeep Sandhu
On Tue, Aug 13, 2013 at 4:14 PM, Richard Turner wrote: > Hi, > QString str = > "http%3A%2F%2F192.168.1.1%3A80%2Fservlet%2Fcom.mcdonalds.report.view.excel.ExcelReportServlet%3Ffile%3D4162%26columns%3D0%26srcType%3DdefineBean%26width%3D0%26height%3D0%26reportParamsId%3D101767%26cachedId%3D416

[Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

2013-08-13 Thread Richard Turner
|Hi, | QString str = "http%3A%2F%2F192.168.1.1%3A80%2Fservlet%2Fcom.mcdonalds.report.view.excel.ExcelReportServlet%3Ffile%3D4162%26columns%3D0%26srcType%3DdefineBean%26width%3D0%26height%3D0%26reportParamsId%3D101767%26cachedId%3D4163%26t_i_m_e%3D1376389959473&pageStyle=0"; QUrl dow