<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <pre style="" class="lang-c prettyprint prettyprinted"><code><span class="typ">Hi,

</span></code><span style=" color:#c0c0c0;">    </span><span style=" color:#55ff55;">QString</span><span style=" color:#c0c0c0;"> </span>str<span style=" color:#c0c0c0;"> </span><span style=" color:#aaaaaa;">=</span><span style=" color:#c0c0c0;"> </span><span style=" color:#ff55ff;">"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"</span><span style=" color:#aaaaaa;">;</span>

<span style=" color:#c0c0c0;">    </span><span style=" color:#55ff55;">QUrl</span><span style=" color:#c0c0c0;"> </span>downloadUrl1<span style=" color:#c0c0c0;"> </span><span style=" color:#aaaaaa;">=</span><span style=" color:#c0c0c0;"> </span><span style=" color:#55ff55;">QUrl</span><span style=" color:#aaaaaa;">::</span>fromEncoded<span style=" color:#aaaaaa;">(</span>str<span style=" color:#aaaaaa;">.</span>toUtf8<span style=" color:#aaaaaa;">());</span>
<span style=" color:#c0c0c0;">    </span><span style=" color:#55ff55;">QUrl</span><span style=" color:#c0c0c0;"> </span>downloadUrl2<span style=" color:#c0c0c0;"> </span><span style=" color:#aaaaaa;">=</span><span style=" color:#c0c0c0;"> </span><span style=" color:#55ff55;">QUrl</span><span style=" color:#aaaaaa;">::</span>fromPercentEncoding<span style=" color:#aaaaaa;">(</span>str<span style=" color:#aaaaaa;">.</span>toUtf8<span style=" color:#aaaaaa;">());</span>


<span style=" color:#c0c0c0;">    </span><span style=" color:#5555ff;">assert</span><span style=" color:#aaaaaa;">(</span>downloadUrl1<span style=" color:#aaaaaa;">.</span>toString<span style=" color:#aaaaaa;">()</span><span style=" color:#c0c0c0;"> </span><span style=" color:#aaaaaa;">==</span><span style=" color:#c0c0c0;"> </span>downloadUrl2<span style=" color:#aaaaaa;">.</span>toString<span style=" color:#aaaaaa;">());</span>
<span style=" color:#c0c0c0;">    </span><span style=" color:#5555ff;">assert</span><span style=" color:#aaaaaa;">(</span>downloadUrl1<span style=" color:#c0c0c0;"> </span><span style=" color:#aaaaaa;">==</span><span style=" color:#c0c0c0;"> </span>downloadUrl2<span style=" color:#aaaaaa;">);</span>

Why is the second assertion fails when the first assertion still passes? What is the underlying difference between QUrl::fromEncoded and QUrl::fromPercentEncoding?

Thanks!

Richard
</pre>
  </body>
</html>